home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 August (Alt) / CHIP 2005-08.1.iso / program / code / Firefox_1.0.5.exe / browser.xpi / bin / chrome / comm.jar < prev    next >
PKZip Archive  |  2005-07-11  |  95.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: PKZip Archive (archive/zip).

You can browse this item here: comm.jar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert PKZip Archive (archive/zip) magic Supported
66% dexvert JAR Archive (archive/jar) ext Supported
100% file Zip archive data, made by v2.3 UNIX, extract using at least v1.0, last modified, last modified Sun, Jan 31 2002 14:12:26, uncompressed size 405, method=store default
99% file Zip archive, with extra data prepended default
98% file data default
72% TrID Sweet Home 3D design (generic) default (weak)
27% TrID ZIP compressed archive default
100% dexmagic PrintFox/Pagefox WEAK default
100% siegfried x-fmt/263 ZIP Format default
100% lsar Zip default
100% gt2 ZIP Archiv gefunden (Auflistung ist deaktiviert) default
100% detectItEasy Archive: Zip(1.0)[100.0%,19 files] default
100% binwalkID Zip archive data, at least v1.0 to extract, compressed size: 405, uncompressed size: 405, name: content/necko/redirect_loop.xul default
100% xdgMime application/zip default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 4b 03 04 0a 00 00 00 | 00 00 8d 71 3f 2c 9d 15 |PK......|...q?,..|
|00000010| 76 06 95 01 00 00 95 01 | 00 00 1f 00 15 00 63 6f |v.......|......co|
|00000020| 6e 74 65 6e 74 2f 6e 65 | 63 6b 6f 2f 72 65 64 69 |ntent/ne|cko/redi|
|00000030| 72 65 63 74 5f 6c 6f 6f | 70 2e 78 75 6c 55 54 09 |rect_loo|p.xulUT.|
|00000040| 00 03 49 c1 59 3c b8 18 | d3 42 55 78 04 00 eb 03 |..I.Y<..|.BUx....|
|00000050| 01 02 3c 3f 78 6d 6c 20 | 76 65 72 73 69 6f 6e 3d |..<?xml |version=|
|00000060| 22 31 2e 30 22 3f 3e 0d | 0a 0d 0a 3c 21 44 4f 43 |"1.0"?>.|...<!DOC|
|00000070| 54 59 50 45 20 77 69 6e | 64 6f 77 20 53 59 53 54 |TYPE win|dow SYST|
|00000080| 45 4d 20 22 63 68 72 6f | 6d 65 3a 2f 2f 6e 65 63 |EM "chro|me://nec|
|00000090| 6b 6f 2f 6c 6f 63 61 6c | 65 2f 72 65 64 69 72 65 |ko/local|e/redire|
|000000a0| 63 74 5f 6c 6f 6f 70 2e | 64 74 64 22 3e 0d 0a 0d |ct_loop.|dtd">...|
|000000b0| 0a 3c 77 69 6e 64 6f 77 | 20 0d 0a 20 20 20 20 20 |.<window| .. |
|000000c0| 20 20 20 78 6d 6c 6e 73 | 3a 72 64 66 3d 22 68 74 | xmlns|:rdf="ht|
|000000d0| 74 70 3a 2f 2f 77 77 77 | 2e 77 33 2e 6f 72 67 2f |tp://www|.w3.org/|
|000000e0| 31 39 39 39 2f 30 32 2f | 32 32 2d 72 64 66 2d 73 |1999/02/|22-rdf-s|
|000000f0| 79 6e 74 61 78 2d 6e 73 | 23 22 0d 0a 09 09 78 6d |yntax-ns|#"....xm|
|00000100| 6c 6e 73 3a 4e 43 3d 22 | 68 74 74 70 3a 2f 2f 68 |lns:NC="|http://h|
|00000110| 6f 6d 65 2e 6e 65 74 73 | 63 61 70 65 2e 63 6f 6d |ome.nets|cape.com|
|00000120| 2f 4e 43 2d 72 64 66 23 | 22 09 0d 0a 20 20 20 20 |/NC-rdf#|"... |
|00000130| 20 20 20 20 78 6d 6c 6e | 73 3d 22 68 74 74 70 3a | xmln|s="http:|
|00000140| 2f 2f 77 77 77 2e 6d 6f | 7a 69 6c 6c 61 2e 6f 72 |//www.mo|zilla.or|
|00000150| 67 2f 6b 65 79 6d 61 73 | 74 65 72 2f 67 61 74 65 |g/keymas|ter/gate|
|00000160| 6b 65 65 70 65 72 2f 74 | 68 65 72 65 2e 69 73 2e |keeper/t|here.is.|
|00000170| 6f 6e 6c 79 2e 78 75 6c | 22 0d 0a 20 20 20 20 20 |only.xul|".. |
|00000180| 20 20 20 73 74 79 6c 65 | 3d 22 70 61 64 64 69 6e | style|="paddin|
|00000190| 67 3a 31 30 70 78 22 0d | 0a 09 74 69 74 6c 65 3d |g:10px".|..title=|
|000001a0| 22 26 74 69 74 6c 65 2e | 6c 61 62 65 6c 3b 22 3e |"&title.|label;">|
|000001b0| 20 0d 0a 20 20 20 20 20 | 20 20 20 0d 0a 09 3c 74 | .. | ...<t|
|000001c0| 65 78 74 20 76 61 6c 75 | 65 3d 22 26 62 6f 64 79 |ext valu|e="&body|
|000001d0| 2e 6c 61 62 65 6c 3b 22 | 2f 3e 0d 0a 3c 2f 77 69 |.label;"|/>..</wi|
|000001e0| 6e 64 6f 77 3e 0d 0a 50 | 4b 03 04 0a 00 00 00 00 |ndow>..P|K.......|
|000001f0| 00 0a 33 44 30 54 c8 28 | 1c 3c 02 00 00 3c 02 00 |..3D0T.(|.<...<..|
|00000200| 00 1a 00 15 00 63 6f 6e | 74 65 6e 74 2f 6e 65 63 |.....con|tent/nec|
|00000210| 6b 6f 2f 63 6f 6e 74 65 | 6e 74 73 2e 72 64 66 55 |ko/conte|nts.rdfU|
|00000220| 54 09 00 03 94 00 21 40 | b8 18 d3 42 55 78 04 00 |T.....!@|...BUx..|
|00000230| eb 03 01 02 3c 3f 78 6d | 6c 20 76 65 72 73 69 6f |....<?xm|l versio|
|00000240| 6e 3d 22 31 2e 30 22 3f | 3e 0d 0a 3c 52 44 46 3a |n="1.0"?|>..<RDF:|
|00000250| 52 44 46 20 78 6d 6c 6e | 73 3a 52 44 46 3d 22 68 |RDF xmln|s:RDF="h|
|00000260| 74 74 70 3a 2f 2f 77 77 | 77 2e 77 33 2e 6f 72 67 |ttp://ww|w.w3.org|
|00000270| 2f 31 39 39 39 2f 30 32 | 2f 32 32 2d 72 64 66 2d |/1999/02|/22-rdf-|
|00000280| 73 79 6e 74 61 78 2d 6e | 73 23 22 0d 0a 20 20 20 |syntax-n|s#".. |
|00000290| 20 20 20 20 20 20 78 6d | 6c 6e 73 3a 63 68 72 6f | xm|lns:chro|
|000002a0| 6d 65 3d 22 68 74 74 70 | 3a 2f 2f 77 77 77 2e 6d |me="http|://www.m|
|000002b0| 6f 7a 69 6c 6c 61 2e 6f | 72 67 2f 72 64 66 2f 63 |ozilla.o|rg/rdf/c|
|000002c0| 68 72 6f 6d 65 23 22 3e | 0d 0a 0d 0a 20 20 3c 21 |hrome#">|.... <!|
|000002d0| 2d 2d 20 6c 69 73 74 20 | 61 6c 6c 20 74 68 65 20 |-- list |all the |
|000002e0| 70 61 63 6b 61 67 65 73 | 20 62 65 69 6e 67 20 73 |packages| being s|
|000002f0| 75 70 70 6c 69 65 64 20 | 2d 2d 3e 0d 0a 20 20 3c |upplied |-->.. <|
|00000300| 52 44 46 3a 53 65 71 20 | 61 62 6f 75 74 3d 22 75 |RDF:Seq |about="u|
|00000310| 72 6e 3a 6d 6f 7a 69 6c | 6c 61 3a 70 61 63 6b 61 |rn:mozil|la:packa|
|00000320| 67 65 3a 72 6f 6f 74 22 | 3e 0d 0a 20 20 20 20 3c |ge:root"|>.. <|
|00000330| 52 44 46 3a 6c 69 20 72 | 65 73 6f 75 72 63 65 3d |RDF:li r|esource=|
|00000340| 22 75 72 6e 3a 6d 6f 7a | 69 6c 6c 61 3a 70 61 63 |"urn:moz|illa:pac|
|00000350| 6b 61 67 65 3a 6e 65 63 | 6b 6f 22 2f 3e 0d 0a 20 |kage:nec|ko"/>.. |
|00000360| 20 3c 2f 52 44 46 3a 53 | 65 71 3e 0d 0a 0d 0a 20 | </RDF:S|eq>.... |
|00000370| 20 3c 21 2d 2d 20 70 61 | 63 6b 61 67 65 20 69 6e | <!-- pa|ckage in|
|00000380| 66 6f 72 6d 61 74 69 6f | 6e 20 2d 2d 3e 0d 0a 20 |formatio|n -->.. |
|00000390| 20 3c 52 44 46 3a 44 65 | 73 63 72 69 70 74 69 6f | <RDF:De|scriptio|
|000003a0| 6e 20 61 62 6f 75 74 3d | 22 75 72 6e 3a 6d 6f 7a |n about=|"urn:moz|
|000003b0| 69 6c 6c 61 3a 70 61 63 | 6b 61 67 65 3a 6e 65 63 |illa:pac|kage:nec|
|000003c0| 6b 6f 22 0d 0a 20 20 20 | 20 20 20 20 20 63 68 72 |ko".. | chr|
|000003d0| 6f 6d 65 3a 64 69 73 70 | 6c 61 79 4e 61 6d 65 3d |ome:disp|layName=|
|000003e0| 22 4e 65 63 6b 6f 22 0d | 0a 20 20 20 20 20 20 20 |"Necko".|. |
|000003f0| 20 63 68 72 6f 6d 65 3a | 61 75 74 68 6f 72 3d 22 | chrome:|author="|
|00000400| 6d 6f 7a 69 6c 6c 61 2e | 6f 72 67 22 0d 0a 20 20 |mozilla.|org".. |
|00000410| 20 20 20 20 20 20 63 68 | 72 6f 6d 65 3a 6e 61 6d | ch|rome:nam|
|00000420| 65 3d 22 6e 65 63 6b 6f | 22 0d 0a 20 09 63 68 72 |e="necko|".. .chr|
|00000430| 6f 6d 65 3a 6c 6f 63 61 | 6c 65 56 65 72 73 69 6f |ome:loca|leVersio|
|00000440| 6e 3d 22 31 2e 37 22 3e | 0d 0a 20 20 3c 2f 52 44 |n="1.7">|.. </RD|
|00000450| 46 3a 44 65 73 63 72 69 | 70 74 69 6f 6e 3e 0d 0a |F:Descri|ption>..|
|00000460| 0d 0a 3c 2f 52 44 46 3a | 52 44 46 3e 0d 0a 0d 0a |..</RDF:|RDF>....|
|00000470| 50 4b 03 04 0a 00 00 00 | 00 00 e5 55 fa 2c 83 77 |PK......|...U.,.w|
|00000480| 07 65 e9 01 00 00 e9 01 | 00 00 20 00 15 00 63 6f |.e......|.. ...co|
|00000490| 6e 74 65 6e 74 2f 78 62 | 6c 2d 6d 61 72 71 75 65 |ntent/xb|l-marque|
|000004a0| 65 2f 63 6f 6e 74 65 6e | 74 73 2e 72 64 66 55 54 |e/conten|ts.rdfUT|
|000004b0| 09 00 03 1d 8b 41 3d 22 | 1a d3 42 55 78 04 00 eb |.....A="|..BUx...|
|000004c0| 03 01 02 3c 3f 78 6d 6c | 20 76 65 72 73 69 6f 6e |...<?xml| version|
|000004d0| 3d 22 31 2e 30 22 3f 3e | 0d 0a 3c 52 44 46 3a 52 |="1.0"?>|..<RDF:R|
|000004e0| 44 46 20 78 6d 6c 6e 73 | 3a 52 44 46 3d 22 68 74 |DF xmlns|:RDF="ht|
|000004f0| 74 70 3a 2f 2f 77 77 77 | 2e 77 33 2e 6f 72 67 2f |tp://www|.w3.org/|
|00000500| 31 39 39 39 2f 30 32 2f | 32 32 2d 72 64 66 2d 73 |1999/02/|22-rdf-s|
|00000510| 79 6e 74 61 78 2d 6e 73 | 23 22 0d 0a 20 78 6d 6c |yntax-ns|#".. xml|
|00000520| 6e 73 3a 63 68 72 6f 6d | 65 3d 22 68 74 74 70 3a |ns:chrom|e="http:|
|00000530| 2f 2f 77 77 77 2e 6d 6f | 7a 69 6c 6c 61 2e 6f 72 |//www.mo|zilla.or|
|00000540| 67 2f 72 64 66 2f 63 68 | 72 6f 6d 65 23 22 3e 0d |g/rdf/ch|rome#">.|
|00000550| 0a 0d 0a 20 3c 52 44 46 | 3a 53 65 71 20 61 62 6f |... <RDF|:Seq abo|
|00000560| 75 74 3d 22 75 72 6e 3a | 6d 6f 7a 69 6c 6c 61 3a |ut="urn:|mozilla:|
|00000570| 70 61 63 6b 61 67 65 3a | 72 6f 6f 74 22 3e 0d 0a |package:|root">..|
|00000580| 20 20 20 3c 52 44 46 3a | 6c 69 20 72 65 73 6f 75 | <RDF:|li resou|
|00000590| 72 63 65 3d 22 75 72 6e | 3a 6d 6f 7a 69 6c 6c 61 |rce="urn|:mozilla|
|000005a0| 3a 70 61 63 6b 61 67 65 | 3a 78 62 6c 2d 6d 61 72 |:package|:xbl-mar|
|000005b0| 71 75 65 65 22 2f 3e 0d | 0a 20 3c 2f 52 44 46 3a |quee"/>.|. </RDF:|
|000005c0| 53 65 71 3e 0d 0a 0d 0a | 20 3c 52 44 46 3a 44 65 |Seq>....| <RDF:De|
|000005d0| 73 63 72 69 70 74 69 6f | 6e 20 61 62 6f 75 74 3d |scriptio|n about=|
|000005e0| 22 75 72 6e 3a 6d 6f 7a | 69 6c 6c 61 3a 70 61 63 |"urn:moz|illa:pac|
|000005f0| 6b 61 67 65 3a 78 62 6c | 2d 6d 61 72 71 75 65 65 |kage:xbl|-marquee|
|00000600| 22 0d 0a 20 20 20 63 68 | 72 6f 6d 65 3a 64 69 73 |".. ch|rome:dis|
|00000610| 70 6c 61 79 4e 61 6d 65 | 3d 22 58 42 4c 20 4d 61 |playName|="XBL Ma|
|00000620| 72 71 75 65 65 20 45 6d | 75 6c 61 74 69 6f 6e 22 |rquee Em|ulation"|
|00000630| 0d 0a 20 20 20 63 68 72 | 6f 6d 65 3a 61 75 74 68 |.. chr|ome:auth|
|00000640| 6f 72 3d 22 4e 65 74 73 | 63 61 70 65 20 43 6f 6d |or="Nets|cape Com|
|00000650| 6d 75 6e 69 63 61 74 69 | 6f 6e 73 20 43 6f 72 70 |municati|ons Corp|
|00000660| 6f 72 61 74 69 6f 6e 22 | 0d 0a 20 20 20 63 68 72 |oration"|.. chr|
|00000670| 6f 6d 65 3a 6e 61 6d 65 | 3d 22 78 62 6c 2d 6d 61 |ome:name|="xbl-ma|
|00000680| 72 71 75 65 65 22 3e 0d | 0a 20 3c 2f 52 44 46 3a |rquee">.|. </RDF:|
|00000690| 44 65 73 63 72 69 70 74 | 69 6f 6e 3e 0d 0a 0d 0a |Descript|ion>....|
|000006a0| 3c 2f 52 44 46 3a 52 44 | 46 3e 0d 0a 50 4b 03 04 |</RDF:RD|F>..PK..|
|000006b0| 0a 00 00 00 00 00 9b 72 | 39 31 79 9b 47 98 c2 36 |.......r|91y.G..6|
|000006c0| 00 00 c2 36 00 00 23 00 | 15 00 63 6f 6e 74 65 6e |...6..#.|..conten|
|000006d0| 74 2f 78 62 6c 2d 6d 61 | 72 71 75 65 65 2f 78 62 |t/xbl-ma|rquee/xb|
|000006e0| 6c 2d 6d 61 72 71 75 65 | 65 2e 78 6d 6c 55 54 09 |l-marque|e.xmlUT.|
|000006f0| 00 03 35 e1 55 41 22 1a | d3 42 55 78 04 00 eb 03 |..5.UA".|.BUx....|
|00000700| 01 02 3c 3f 78 6d 6c 20 | 76 65 72 73 69 6f 6e 3d |..<?xml |version=|
|00000710| 22 31 2e 30 22 3f 3e 0d | 0a 3c 21 2d 2d 20 2a 2a |"1.0"?>.|.<!-- **|
|00000720| 2a 2a 2a 20 42 45 47 49 | 4e 20 4c 49 43 45 4e 53 |*** BEGI|N LICENS|
|00000730| 45 20 42 4c 4f 43 4b 20 | 2a 2a 2a 2a 2a 0d 0a 20 |E BLOCK |*****.. |
|00000740| 20 20 2d 20 56 65 72 73 | 69 6f 6e 3a 20 4d 50 4c | - Vers|ion: MPL|
|00000750| 20 31 2e 31 2f 47 50 4c | 20 32 2e 30 2f 4c 47 50 | 1.1/GPL| 2.0/LGP|
|00000760| 4c 20 32 2e 31 0d 0a 20 | 20 20 2d 0d 0a 20 20 20 |L 2.1.. | -.. |
|00000770| 2d 20 54 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |- The co|ntents o|
|00000780| 66 20 74 68 69 73 20 66 | 69 6c 65 20 61 72 65 20 |f this f|ile are |
|00000790| 73 75 62 6a 65 63 74 20 | 74 6f 20 74 68 65 20 4d |subject |to the M|
|000007a0| 6f 7a 69 6c 6c 61 20 50 | 75 62 6c 69 63 20 4c 69 |ozilla P|ublic Li|
|000007b0| 63 65 6e 73 65 20 56 65 | 72 73 69 6f 6e 0d 0a 20 |cense Ve|rsion.. |
|000007c0| 20 20 2d 20 31 2e 31 20 | 28 74 68 65 20 22 4c 69 | - 1.1 |(the "Li|
|000007d0| 63 65 6e 73 65 22 29 3b | 20 79 6f 75 20 6d 61 79 |cense");| you may|
|000007e0| 20 6e 6f 74 20 75 73 65 | 20 74 68 69 73 20 66 69 | not use| this fi|
|000007f0| 6c 65 20 65 78 63 65 70 | 74 20 69 6e 20 63 6f 6d |le excep|t in com|
|00000800| 70 6c 69 61 6e 63 65 20 | 77 69 74 68 0d 0a 20 20 |pliance |with.. |
|00000810| 20 2d 20 74 68 65 20 4c | 69 63 65 6e 73 65 2e 20 | - the L|icense. |
|00000820| 59 6f 75 20 6d 61 79 20 | 6f 62 74 61 69 6e 20 61 |You may |obtain a|
|00000830| 20 63 6f 70 79 20 6f 66 | 20 74 68 65 20 4c 69 63 | copy of| the Lic|
|00000840| 65 6e 73 65 20 61 74 0d | 0a 20 20 20 2d 20 68 74 |ense at.|. - ht|
|00000850| 74 70 3a 2f 2f 77 77 77 | 2e 6d 6f 7a 69 6c 6c 61 |tp://www|.mozilla|
|00000860| 2e 6f 72 67 2f 4d 50 4c | 2f 0d 0a 20 20 20 2d 0d |.org/MPL|/.. -.|
|00000870| 0a 20 20 20 2d 20 53 6f | 66 74 77 61 72 65 20 64 |. - So|ftware d|
|00000880| 69 73 74 72 69 62 75 74 | 65 64 20 75 6e 64 65 72 |istribut|ed under|
|00000890| 20 74 68 65 20 4c 69 63 | 65 6e 73 65 20 69 73 20 | the Lic|ense is |
|000008a0| 64 69 73 74 72 69 62 75 | 74 65 64 20 6f 6e 20 61 |distribu|ted on a|
|000008b0| 6e 20 22 41 53 20 49 53 | 22 20 62 61 73 69 73 2c |n "AS IS|" basis,|
|000008c0| 0d 0a 20 20 20 2d 20 57 | 49 54 48 4f 55 54 20 57 |.. - W|ITHOUT W|
|000008d0| 41 52 52 41 4e 54 59 20 | 4f 46 20 41 4e 59 20 4b |ARRANTY |OF ANY K|
|000008e0| 49 4e 44 2c 20 65 69 74 | 68 65 72 20 65 78 70 72 |IND, eit|her expr|
|000008f0| 65 73 73 20 6f 72 20 69 | 6d 70 6c 69 65 64 2e 20 |ess or i|mplied. |
|00000900| 53 65 65 20 74 68 65 20 | 4c 69 63 65 6e 73 65 0d |See the |License.|
|00000910| 0a 20 20 20 2d 20 66 6f | 72 20 74 68 65 20 73 70 |. - fo|r the sp|
|00000920| 65 63 69 66 69 63 20 6c | 61 6e 67 75 61 67 65 20 |ecific l|anguage |
|00000930| 67 6f 76 65 72 6e 69 6e | 67 20 72 69 67 68 74 73 |governin|g rights|
|00000940| 20 61 6e 64 20 6c 69 6d | 69 74 61 74 69 6f 6e 73 | and lim|itations|
|00000950| 20 75 6e 64 65 72 20 74 | 68 65 0d 0a 20 20 20 2d | under t|he.. -|
|00000960| 20 4c 69 63 65 6e 73 65 | 2e 0d 0a 20 20 20 2d 0d | License|... -.|
|00000970| 0a 20 20 20 2d 20 54 68 | 65 20 4f 72 69 67 69 6e |. - Th|e Origin|
|00000980| 61 6c 20 43 6f 64 65 20 | 69 73 20 4e 65 74 73 63 |al Code |is Netsc|
|00000990| 61 70 65 27 73 20 58 42 | 4c 20 4d 61 72 71 75 65 |ape's XB|L Marque|
|000009a0| 65 20 45 6d 75 6c 61 74 | 69 6f 6e 20 63 6f 64 65 |e Emulat|ion code|
|000009b0| 2e 0d 0a 20 20 20 2d 0d | 0a 20 20 20 2d 20 54 68 |... -.|. - Th|
|000009c0| 65 20 49 6e 69 74 69 61 | 6c 20 44 65 76 65 6c 6f |e Initia|l Develo|
|000009d0| 70 65 72 20 6f 66 20 74 | 68 65 20 4f 72 69 67 69 |per of t|he Origi|
|000009e0| 6e 61 6c 20 43 6f 64 65 | 20 69 73 0d 0a 20 20 20 |nal Code| is.. |
|000009f0| 2d 20 4e 65 74 73 63 61 | 70 65 20 43 6f 6d 6d 75 |- Netsca|pe Commu|
|00000a00| 6e 69 63 61 74 69 6f 6e | 73 20 43 6f 72 70 6f 72 |nication|s Corpor|
|00000a10| 61 74 69 6f 6e 2e 0d 0a | 20 20 20 2d 20 50 6f 72 |ation...| - Por|
|00000a20| 74 69 6f 6e 73 20 63 72 | 65 61 74 65 64 20 62 79 |tions cr|eated by|
|00000a30| 20 74 68 65 20 49 6e 69 | 74 69 61 6c 20 44 65 76 | the Ini|tial Dev|
|00000a40| 65 6c 6f 70 65 72 20 61 | 72 65 20 43 6f 70 79 72 |eloper a|re Copyr|
|00000a50| 69 67 68 74 20 28 43 29 | 20 32 30 30 32 0d 0a 20 |ight (C)| 2002.. |
|00000a60| 20 20 2d 20 74 68 65 20 | 49 6e 69 74 69 61 6c 20 | - the |Initial |
|00000a70| 44 65 76 65 6c 6f 70 65 | 72 2e 20 41 6c 6c 20 52 |Develope|r. All R|
|00000a80| 69 67 68 74 73 20 52 65 | 73 65 72 76 65 64 2e 0d |ights Re|served..|
|00000a90| 0a 20 20 20 2d 0d 0a 20 | 20 20 2d 20 43 6f 6e 74 |. -.. | - Cont|
|00000aa0| 72 69 62 75 74 6f 72 28 | 73 29 3a 0d 0a 20 20 20 |ributor(|s):.. |
|00000ab0| 2d 20 20 20 44 6f 72 6f | 6e 20 52 6f 73 65 6e 62 |- Doro|n Rosenb|
|00000ac0| 65 72 67 20 3c 64 6f 72 | 6f 6e 40 6e 65 74 73 63 |erg <dor|on@netsc|
|00000ad0| 61 70 65 2e 63 6f 6d 3e | 0d 0a 20 20 20 2d 20 20 |ape.com>|.. - |
|00000ae0| 20 4c 2e 20 44 61 76 69 | 64 20 42 61 72 6f 6e 20 | L. Davi|d Baron |
|00000af0| 3c 64 62 61 72 6f 6e 40 | 64 62 61 72 6f 6e 2e 6f |<dbaron@|dbaron.o|
|00000b00| 72 67 3e 0d 0a 20 20 20 | 2d 0d 0a 20 20 20 2d 20 |rg>.. |-.. - |
|00000b10| 41 6c 74 65 72 6e 61 74 | 69 76 65 6c 79 2c 20 74 |Alternat|ively, t|
|00000b20| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |he conte|nts of t|
|00000b30| 68 69 73 20 66 69 6c 65 | 20 6d 61 79 20 62 65 20 |his file| may be |
|00000b40| 75 73 65 64 20 75 6e 64 | 65 72 20 74 68 65 20 74 |used und|er the t|
|00000b50| 65 72 6d 73 20 6f 66 0d | 0a 20 20 20 2d 20 65 69 |erms of.|. - ei|
|00000b60| 74 68 65 72 20 74 68 65 | 20 47 4e 55 20 47 65 6e |ther the| GNU Gen|
|00000b70| 65 72 61 6c 20 50 75 62 | 6c 69 63 20 4c 69 63 65 |eral Pub|lic Lice|
|00000b80| 6e 73 65 20 56 65 72 73 | 69 6f 6e 20 32 20 6f 72 |nse Vers|ion 2 or|
|00000b90| 20 6c 61 74 65 72 20 28 | 74 68 65 20 22 47 50 4c | later (|the "GPL|
|00000ba0| 22 29 2c 20 6f 72 0d 0a | 20 20 20 2d 20 74 68 65 |"), or..| - the|
|00000bb0| 20 47 4e 55 20 4c 65 73 | 73 65 72 20 47 65 6e 65 | GNU Les|ser Gene|
|00000bc0| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|00000bd0| 73 65 20 56 65 72 73 69 | 6f 6e 20 32 2e 31 20 6f |se Versi|on 2.1 o|
|00000be0| 72 20 6c 61 74 65 72 20 | 28 74 68 65 20 22 4c 47 |r later |(the "LG|
|00000bf0| 50 4c 22 29 2c 0d 0a 20 | 20 20 2d 20 69 6e 20 77 |PL"),.. | - in w|
|00000c00| 68 69 63 68 20 63 61 73 | 65 20 74 68 65 20 70 72 |hich cas|e the pr|
|00000c10| 6f 76 69 73 69 6f 6e 73 | 20 6f 66 20 74 68 65 20 |ovisions| of the |
|00000c20| 47 50 4c 20 6f 72 20 74 | 68 65 20 4c 47 50 4c 20 |GPL or t|he LGPL |
|00000c30| 61 72 65 20 61 70 70 6c | 69 63 61 62 6c 65 20 69 |are appl|icable i|
|00000c40| 6e 73 74 65 61 64 0d 0a | 20 20 20 2d 20 6f 66 20 |nstead..| - of |
|00000c50| 74 68 6f 73 65 20 61 62 | 6f 76 65 2e 20 49 66 20 |those ab|ove. If |
|00000c60| 79 6f 75 20 77 69 73 68 | 20 74 6f 20 61 6c 6c 6f |you wish| to allo|
|00000c70| 77 20 75 73 65 20 6f 66 | 20 79 6f 75 72 20 76 65 |w use of| your ve|
|00000c80| 72 73 69 6f 6e 20 6f 66 | 20 74 68 69 73 20 66 69 |rsion of| this fi|
|00000c90| 6c 65 20 6f 6e 6c 79 0d | 0a 20 20 20 2d 20 75 6e |le only.|. - un|
|00000ca0| 64 65 72 20 74 68 65 20 | 74 65 72 6d 73 20 6f 66 |der the |terms of|
|00000cb0| 20 65 69 74 68 65 72 20 | 74 68 65 20 47 50 4c 20 | either |the GPL |
|00000cc0| 6f 72 20 74 68 65 20 4c | 47 50 4c 2c 20 61 6e 64 |or the L|GPL, and|
|00000cd0| 20 6e 6f 74 20 74 6f 20 | 61 6c 6c 6f 77 20 6f 74 | not to |allow ot|
|00000ce0| 68 65 72 73 20 74 6f 0d | 0a 20 20 20 2d 20 75 73 |hers to.|. - us|
|00000cf0| 65 20 79 6f 75 72 20 76 | 65 72 73 69 6f 6e 20 6f |e your v|ersion o|
|00000d00| 66 20 74 68 69 73 20 66 | 69 6c 65 20 75 6e 64 65 |f this f|ile unde|
|00000d10| 72 20 74 68 65 20 74 65 | 72 6d 73 20 6f 66 20 74 |r the te|rms of t|
|00000d20| 68 65 20 4d 50 4c 2c 20 | 69 6e 64 69 63 61 74 65 |he MPL, |indicate|
|00000d30| 20 79 6f 75 72 0d 0a 20 | 20 20 2d 20 64 65 63 69 | your.. | - deci|
|00000d40| 73 69 6f 6e 20 62 79 20 | 64 65 6c 65 74 69 6e 67 |sion by |deleting|
|00000d50| 20 74 68 65 20 70 72 6f | 76 69 73 69 6f 6e 73 20 | the pro|visions |
|00000d60| 61 62 6f 76 65 20 61 6e | 64 20 72 65 70 6c 61 63 |above an|d replac|
|00000d70| 65 20 74 68 65 6d 20 77 | 69 74 68 20 74 68 65 20 |e them w|ith the |
|00000d80| 6e 6f 74 69 63 65 0d 0a | 20 20 20 2d 20 61 6e 64 |notice..| - and|
|00000d90| 20 6f 74 68 65 72 20 70 | 72 6f 76 69 73 69 6f 6e | other p|rovision|
|00000da0| 73 20 72 65 71 75 69 72 | 65 64 20 62 79 20 74 68 |s requir|ed by th|
|00000db0| 65 20 4c 47 50 4c 20 6f | 72 20 74 68 65 20 47 50 |e LGPL o|r the GP|
|00000dc0| 4c 2e 20 49 66 20 79 6f | 75 20 64 6f 20 6e 6f 74 |L. If yo|u do not|
|00000dd0| 20 64 65 6c 65 74 65 0d | 0a 20 20 20 2d 20 74 68 | delete.|. - th|
|00000de0| 65 20 70 72 6f 76 69 73 | 69 6f 6e 73 20 61 62 6f |e provis|ions abo|
|00000df0| 76 65 2c 20 61 20 72 65 | 63 69 70 69 65 6e 74 20 |ve, a re|cipient |
|00000e00| 6d 61 79 20 75 73 65 20 | 79 6f 75 72 20 76 65 72 |may use |your ver|
|00000e10| 73 69 6f 6e 20 6f 66 20 | 74 68 69 73 20 66 69 6c |sion of |this fil|
|00000e20| 65 20 75 6e 64 65 72 0d | 0a 20 20 20 2d 20 74 68 |e under.|. - th|
|00000e30| 65 20 74 65 72 6d 73 20 | 6f 66 20 61 6e 79 20 6f |e terms |of any o|
|00000e40| 6e 65 20 6f 66 20 74 68 | 65 20 4d 50 4c 2c 20 74 |ne of th|e MPL, t|
|00000e50| 68 65 20 47 50 4c 20 6f | 72 20 74 68 65 20 4c 47 |he GPL o|r the LG|
|00000e60| 50 4c 2e 0d 0a 20 20 20 | 2d 0d 0a 20 20 20 2d 20 |PL... |-.. - |
|00000e70| 2a 2a 2a 2a 2a 20 45 4e | 44 20 4c 49 43 45 4e 53 |***** EN|D LICENS|
|00000e80| 45 20 42 4c 4f 43 4b 20 | 2a 2a 2a 2a 2a 20 2d 2d |E BLOCK |***** --|
|00000e90| 3e 0d 0a 0d 0a 3c 62 69 | 6e 64 69 6e 67 73 20 69 |>....<bi|ndings i|
|00000ea0| 64 3d 22 6d 61 72 71 75 | 65 65 42 69 6e 64 69 6e |d="marqu|eeBindin|
|00000eb0| 67 73 22 0d 0a 20 20 20 | 20 20 20 20 20 20 20 78 |gs".. | x|
|00000ec0| 6d 6c 6e 73 3d 22 68 74 | 74 70 3a 2f 2f 77 77 77 |mlns="ht|tp://www|
|00000ed0| 2e 6d 6f 7a 69 6c 6c 61 | 2e 6f 72 67 2f 78 62 6c |.mozilla|.org/xbl|
|00000ee0| 22 0d 0a 20 20 20 20 20 | 20 20 20 20 20 78 6d 6c |".. | xml|
|00000ef0| 6e 73 3a 68 74 6d 6c 3d | 22 68 74 74 70 3a 2f 2f |ns:html=|"http://|
|00000f00| 77 77 77 2e 77 33 2e 6f | 72 67 2f 31 39 39 39 2f |www.w3.o|rg/1999/|
|00000f10| 78 68 74 6d 6c 22 0d 0a | 20 20 20 20 20 20 20 20 |xhtml"..| |
|00000f20| 20 20 78 6d 6c 6e 73 3a | 78 75 6c 3d 22 68 74 74 | xmlns:|xul="htt|
|00000f30| 70 3a 2f 2f 77 77 77 2e | 6d 6f 7a 69 6c 6c 61 2e |p://www.|mozilla.|
|00000f40| 6f 72 67 2f 6b 65 79 6d | 61 73 74 65 72 2f 67 61 |org/keym|aster/ga|
|00000f50| 74 65 6b 65 65 70 65 72 | 2f 74 68 65 72 65 2e 69 |tekeeper|/there.i|
|00000f60| 73 2e 6f 6e 6c 79 2e 78 | 75 6c 22 0d 0a 20 20 20 |s.only.x|ul".. |
|00000f70| 20 20 20 20 20 20 20 78 | 6d 6c 6e 73 3a 78 62 6c | x|mlns:xbl|
|00000f80| 3d 22 68 74 74 70 3a 2f | 2f 77 77 77 2e 6d 6f 7a |="http:/|/www.moz|
|00000f90| 69 6c 6c 61 2e 6f 72 67 | 2f 78 62 6c 22 3e 0d 0a |illa.org|/xbl">..|
|00000fa0| 0d 0a 0d 0a 20 20 3c 62 | 69 6e 64 69 6e 67 20 69 |.... <b|inding i|
|00000fb0| 64 3d 22 6d 61 72 71 75 | 65 65 22 20 69 6e 68 65 |d="marqu|ee" inhe|
|00000fc0| 72 69 74 73 74 79 6c 65 | 3d 22 66 61 6c 73 65 22 |ritstyle|="false"|
|00000fd0| 3e 0d 0a 0d 0a 20 20 20 | 20 3c 69 6d 70 6c 65 6d |>.... | <implem|
|00000fe0| 65 6e 74 61 74 69 6f 6e | 3e 0d 0a 0d 0a 20 20 20 |entation|>.... |
|00000ff0| 20 20 20 3c 66 69 65 6c | 64 20 6e 61 6d 65 3d 22 | <fiel|d name="|
|00001000| 64 65 66 61 75 6c 74 53 | 63 72 6f 6c 6c 41 6d 6f |defaultS|crollAmo|
|00001010| 75 6e 74 22 3e 36 3c 2f | 66 69 65 6c 64 3e 0d 0a |unt">6</|field>..|
|00001020| 20 20 20 20 20 20 3c 70 | 72 6f 70 65 72 74 79 20 | <p|roperty |
|00001030| 6e 61 6d 65 3d 22 73 63 | 72 6f 6c 6c 41 6d 6f 75 |name="sc|rollAmou|
|00001040| 6e 74 22 3e 0d 0a 20 20 | 20 20 20 20 20 20 3c 67 |nt">.. | <g|
|00001050| 65 74 74 65 72 3e 0d 0a | 20 20 20 20 20 20 20 20 |etter>..| |
|00001060| 20 20 69 66 20 28 74 68 | 69 73 2e 68 61 73 41 74 | if (th|is.hasAt|
|00001070| 74 72 69 62 75 74 65 28 | 22 73 63 72 6f 6c 6c 61 |tribute(|"scrolla|
|00001080| 6d 6f 75 6e 74 22 29 29 | 0d 0a 20 20 20 20 20 20 |mount"))|.. |
|00001090| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 74 68 69 | re|turn thi|
|000010a0| 73 2e 67 65 74 41 74 74 | 72 69 62 75 74 65 28 22 |s.getAtt|ribute("|
|000010b0| 73 63 72 6f 6c 6c 61 6d | 6f 75 6e 74 22 29 3b 0d |scrollam|ount");.|
|000010c0| 0a 20 20 20 20 20 20 20 | 20 20 20 72 65 74 75 72 |. | retur|
|000010d0| 6e 20 74 68 69 73 2e 64 | 65 66 61 75 6c 74 53 63 |n this.d|efaultSc|
|000010e0| 72 6f 6c 6c 41 6d 6f 75 | 6e 74 3b 20 2f 2f 64 65 |rollAmou|nt; //de|
|000010f0| 66 61 75 6c 74 20 76 61 | 6c 75 65 20 69 73 20 36 |fault va|lue is 6|
|00001100| 20 70 69 78 65 6c 73 0d | 0a 20 20 20 20 20 20 20 | pixels.|. |
|00001110| 20 3c 2f 67 65 74 74 65 | 72 3e 0d 0a 20 20 20 20 | </gette|r>.. |
|00001120| 20 20 20 20 3c 73 65 74 | 74 65 72 3e 0d 0a 20 20 | <set|ter>.. |
|00001130| 20 20 20 20 20 20 20 20 | 74 68 69 73 2e 73 65 74 | |this.set|
|00001140| 41 74 74 72 69 62 75 74 | 65 28 22 73 63 72 6f 6c |Attribut|e("scrol|
|00001150| 6c 61 6d 6f 75 6e 74 22 | 2c 20 76 61 6c 29 3b 0d |lamount"|, val);.|
|00001160| 0a 20 20 20 20 20 20 20 | 20 3c 2f 73 65 74 74 65 |. | </sette|
|00001170| 72 3e 0d 0a 20 20 20 20 | 20 20 3c 2f 70 72 6f 70 |r>.. | </prop|
|00001180| 65 72 74 79 3e 0d 0a 0d | 0a 20 20 20 20 20 20 3c |erty>...|. <|
|00001190| 66 69 65 6c 64 20 6e 61 | 6d 65 3d 22 64 65 66 61 |field na|me="defa|
|000011a0| 75 6c 74 53 63 72 6f 6c | 6c 44 65 6c 61 79 22 3e |ultScrol|lDelay">|
|000011b0| 38 35 3c 2f 66 69 65 6c | 64 3e 0d 0a 20 20 20 20 |85</fiel|d>.. |
|000011c0| 20 20 3c 70 72 6f 70 65 | 72 74 79 20 6e 61 6d 65 | <prope|rty name|
|000011d0| 3d 22 73 63 72 6f 6c 6c | 44 65 6c 61 79 22 3e 0d |="scroll|Delay">.|
|000011e0| 0a 20 20 20 20 20 20 20 | 20 3c 67 65 74 74 65 72 |. | <getter|
|000011f0| 3e 0d 0a 20 20 20 20 20 | 20 20 20 20 20 3c 21 5b |>.. | <![|
|00001200| 43 44 41 54 41 5b 0d 0a | 20 20 20 20 20 20 20 20 |CDATA[..| |
|00001210| 20 20 76 61 72 20 72 76 | 20 3d 20 74 68 69 73 2e | var rv| = this.|
|00001220| 64 65 66 61 75 6c 74 53 | 63 72 6f 6c 6c 44 65 6c |defaultS|crollDel|
|00001230| 61 79 3b 20 2f 2f 64 65 | 66 61 75 6c 74 20 76 61 |ay; //de|fault va|
|00001240| 6c 75 65 20 69 73 20 38 | 35 20 6d 73 0d 0a 0d 0a |lue is 8|5 ms....|
|00001250| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 74 68 | | if (th|
|00001260| 69 73 2e 68 61 73 41 74 | 74 72 69 62 75 74 65 28 |is.hasAt|tribute(|
|00001270| 22 73 63 72 6f 6c 6c 64 | 65 6c 61 79 22 29 29 20 |"scrolld|elay")) |
|00001280| 7b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 72 |{.. | r|
|00001290| 76 20 3d 20 74 68 69 73 | 2e 67 65 74 41 74 74 72 |v = this|.getAttr|
|000012a0| 69 62 75 74 65 28 22 73 | 63 72 6f 6c 6c 64 65 6c |ibute("s|crolldel|
|000012b0| 61 79 22 29 3b 0d 0a 0d | 0a 20 20 20 20 20 20 20 |ay");...|. |
|000012c0| 20 20 20 20 20 2f 2f 6d | 61 72 71 75 65 65 20 64 | //m|arquee d|
|000012d0| 6f 65 73 6e 27 74 20 61 | 6c 6c 6f 77 20 61 6e 79 |oesn't a|llow any|
|000012e0| 74 68 69 6e 67 20 73 68 | 6f 72 74 65 72 20 74 68 |thing sh|orter th|
|000012f0| 61 6e 20 34 30 20 6d 73 | 0d 0a 20 20 20 20 20 20 |an 40 ms|.. |
|00001300| 20 20 20 20 20 20 69 66 | 20 28 72 76 20 3c 20 34 | if| (rv < 4|
|00001310| 30 29 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |0).. | |
|00001320| 20 20 72 76 20 3d 20 34 | 30 3b 0d 0a 20 20 20 20 | rv = 4|0;.. |
|00001330| 20 20 20 20 20 20 7d 0d | 0a 20 20 20 20 20 20 20 | }.|. |
|00001340| 20 20 20 72 65 74 75 72 | 6e 20 72 76 3b 0d 0a 20 | retur|n rv;.. |
|00001350| 20 20 20 20 20 20 20 20 | 20 5d 5d 3e 0d 0a 20 20 | | ]]>.. |
|00001360| 20 20 20 20 20 20 3c 2f | 67 65 74 74 65 72 3e 0d | </|getter>.|
|00001370| 0a 20 20 20 20 20 20 20 | 20 3c 73 65 74 74 65 72 |. | <setter|
|00001380| 3e 0d 0a 20 20 20 20 20 | 20 20 20 20 20 74 68 69 |>.. | thi|
|00001390| 73 2e 73 65 74 41 74 74 | 72 69 62 75 74 65 28 22 |s.setAtt|ribute("|
|000013a0| 73 63 72 6f 6c 6c 64 65 | 6c 61 79 22 2c 20 76 61 |scrollde|lay", va|
|000013b0| 6c 29 3b 0d 0a 0d 0a 20 | 20 20 20 20 20 20 20 20 |l);.... | |
|000013c0| 20 2f 2f 20 73 69 6e 63 | 65 20 77 65 20 63 68 61 | // sinc|e we cha|
|000013d0| 6e 67 65 64 20 74 68 65 | 20 73 63 72 6f 6c 6c 64 |nged the| scrolld|
|000013e0| 65 6c 61 79 2c 20 72 65 | 73 74 61 72 74 20 74 68 |elay, re|start th|
|000013f0| 65 20 6d 61 72 71 75 65 | 65 0d 0a 20 20 20 20 20 |e marque|e.. |
|00001400| 20 20 20 20 20 74 68 69 | 73 2e 5f 64 6f 4d 6f 76 | thi|s._doMov|
|00001410| 65 28 66 61 6c 73 65 29 | 3b 0d 0a 20 20 20 20 20 |e(false)|;.. |
|00001420| 20 20 20 3c 2f 73 65 74 | 74 65 72 3e 0d 0a 20 20 | </set|ter>.. |
|00001430| 20 20 20 20 3c 2f 70 72 | 6f 70 65 72 74 79 3e 0d | </pr|operty>.|
|00001440| 0a 0d 0a 20 20 20 20 20 | 20 3c 66 69 65 6c 64 20 |... | <field |
|00001450| 6e 61 6d 65 3d 22 64 65 | 66 61 75 6c 74 44 69 72 |name="de|faultDir|
|00001460| 65 63 74 69 6f 6e 22 3e | 22 6c 65 66 74 22 3c 2f |ection">|"left"</|
|00001470| 66 69 65 6c 64 3e 0d 0a | 20 20 20 20 20 20 3c 70 |field>..| <p|
|00001480| 72 6f 70 65 72 74 79 20 | 6e 61 6d 65 3d 22 64 69 |roperty |name="di|
|00001490| 72 65 63 74 69 6f 6e 22 | 3e 0d 0a 20 20 20 20 20 |rection"|>.. |
|000014a0| 20 20 20 3c 67 65 74 74 | 65 72 3e 0d 0a 20 20 20 | <gett|er>.. |
|000014b0| 20 20 20 20 20 20 20 72 | 65 74 75 72 6e 20 74 68 | r|eturn th|
|000014c0| 69 73 2e 64 69 72 65 63 | 74 69 6f 6e 46 69 65 6c |is.direc|tionFiel|
|000014d0| 64 3b 0d 0a 20 20 20 20 | 20 20 20 20 3c 2f 67 65 |d;.. | </ge|
|000014e0| 74 74 65 72 3e 0d 0a 20 | 20 20 20 20 20 20 20 3c |tter>.. | <|
|000014f0| 73 65 74 74 65 72 3e 0d | 0a 20 20 20 20 20 20 20 |setter>.|. |
|00001500| 20 20 20 2f 2f 20 69 66 | 20 76 61 6c 20 69 73 20 | // if| val is |
|00001510| 66 61 6c 73 65 2c 20 64 | 6f 6e 27 74 20 63 68 61 |false, d|on't cha|
|00001520| 6e 67 65 20 61 6e 79 74 | 68 69 6e 67 0d 0a 20 20 |nge anyt|hing.. |
|00001530| 20 20 20 20 20 20 20 20 | 69 66 20 28 76 61 6c 29 | |if (val)|
|00001540| 20 7b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | {.. | |
|00001550| 2f 2f 20 69 6e 20 63 61 | 73 65 20 64 69 72 65 63 |// in ca|se direc|
|00001560| 74 69 6f 6e 20 69 73 20 | 73 77 61 70 70 65 64 20 |tion is |swapped |
|00001570| 62 65 74 77 65 65 6e 20 | 68 6f 72 69 7a 6f 6e 74 |between |horizont|
|00001580| 61 6c 2f 76 65 72 74 69 | 63 61 6c 2c 20 75 73 65 |al/verti|cal, use|
|00001590| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2f |.. | //|
|000015a0| 20 73 65 74 41 74 74 72 | 69 62 75 74 65 20 74 6f | setAttr|ibute to|
|000015b0| 20 6d 61 6b 65 20 74 68 | 65 20 78 62 6c 20 62 69 | make th|e xbl bi|
|000015c0| 6e 64 69 6e 67 73 20 63 | 68 61 6e 67 65 2e 0d 0a |ndings c|hange...|
|000015d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 68 69 73 | | this|
|000015e0| 2e 73 65 74 41 74 74 72 | 69 62 75 74 65 28 22 64 |.setAttr|ibute("d|
|000015f0| 69 72 65 63 74 69 6f 6e | 22 2c 20 76 61 6c 29 3b |irection|", val);|
|00001600| 0d 0a 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00001610| 2f 2f 20 73 69 6e 63 65 | 20 77 65 20 63 68 61 6e |// since| we chan|
|00001620| 67 65 64 20 74 68 65 20 | 64 69 72 65 63 74 69 6f |ged the |directio|
|00001630| 6e 2c 20 73 65 74 20 73 | 74 61 72 74 4e 65 77 44 |n, set s|tartNewD|
|00001640| 69 72 65 63 74 69 6f 6e | 20 74 6f 20 74 72 75 65 |irection| to true|
|00001650| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 74 68 |.. | th|
|00001660| 69 73 2e 73 74 61 72 74 | 4e 65 77 44 69 72 65 63 |is.start|NewDirec|
|00001670| 74 69 6f 6e 20 3d 20 74 | 72 75 65 3b 0d 0a 20 20 |tion = t|rue;.. |
|00001680| 20 20 20 20 20 20 20 20 | 20 20 74 68 69 73 2e 64 | | this.d|
|00001690| 69 72 65 63 74 69 6f 6e | 46 69 65 6c 64 20 3d 20 |irection|Field = |
|000016a0| 76 61 6c 2e 74 6f 4c 6f | 77 65 72 43 61 73 65 28 |val.toLo|werCase(|
|000016b0| 29 3b 0d 0a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |);.... | |
|000016c0| 20 20 2f 2f 20 70 61 73 | 73 20 69 6e 20 61 53 6b | // pas|s in aSk|
|000016d0| 69 70 53 65 74 74 69 6e | 67 4e 65 77 50 6f 73 69 |ipSettin|gNewPosi|
|000016e0| 74 69 6f 6e 20 61 73 20 | 74 72 75 65 0d 0a 20 20 |tion as |true.. |
|000016f0| 20 20 20 20 20 20 20 20 | 20 20 74 68 69 73 2e 5f | | this._|
|00001700| 64 6f 4d 6f 76 65 28 74 | 72 75 65 29 3b 0d 0a 20 |doMove(t|rue);.. |
|00001710| 20 20 20 20 20 20 20 20 | 20 7d 0d 0a 20 20 20 20 | | }.. |
|00001720| 20 20 20 20 3c 2f 73 65 | 74 74 65 72 3e 0d 0a 20 | </se|tter>.. |
|00001730| 20 20 20 20 20 3c 2f 70 | 72 6f 70 65 72 74 79 3e | </p|roperty>|
|00001740| 0d 0a 0d 0a 20 20 20 20 | 20 20 3c 66 69 65 6c 64 |.... | <field|
|00001750| 20 6e 61 6d 65 3d 22 64 | 69 72 65 63 74 69 6f 6e | name="d|irection|
|00001760| 46 69 65 6c 64 22 3e 22 | 6c 65 66 74 22 3c 2f 66 |Field">"|left"</f|
|00001770| 69 65 6c 64 3e 0d 0a 0d | 0a 20 20 20 20 20 20 3c |ield>...|. <|
|00001780| 66 69 65 6c 64 20 6e 61 | 6d 65 3d 22 64 65 66 61 |field na|me="defa|
|00001790| 75 6c 74 42 65 68 61 76 | 69 6f 72 22 3e 22 73 63 |ultBehav|ior">"sc|
|000017a0| 72 6f 6c 6c 22 3c 2f 66 | 69 65 6c 64 3e 0d 0a 20 |roll"</f|ield>.. |
|000017b0| 20 20 20 20 20 3c 70 72 | 6f 70 65 72 74 79 20 6e | <pr|operty n|
|000017c0| 61 6d 65 3d 22 62 65 68 | 61 76 69 6f 72 22 3e 0d |ame="beh|avior">.|
|000017d0| 0a 20 20 20 20 20 20 20 | 20 3c 67 65 74 74 65 72 |. | <getter|
|000017e0| 3e 0d 0a 20 20 20 20 20 | 20 20 20 20 20 72 65 74 |>.. | ret|
|000017f0| 75 72 6e 20 74 68 69 73 | 2e 62 65 68 61 76 69 6f |urn this|.behavio|
|00001800| 72 46 69 65 6c 64 3b 0d | 0a 20 20 20 20 20 20 20 |rField;.|. |
|00001810| 20 3c 2f 67 65 74 74 65 | 72 3e 0d 0a 20 20 20 20 | </gette|r>.. |
|00001820| 20 20 20 20 3c 73 65 74 | 74 65 72 3e 0d 0a 20 20 | <set|ter>.. |
|00001830| 20 20 20 20 20 20 20 20 | 74 68 69 73 2e 62 65 68 | |this.beh|
|00001840| 61 76 69 6f 72 46 69 65 | 6c 64 20 3d 20 76 61 6c |aviorFie|ld = val|
|00001850| 20 3f 20 76 61 6c 2e 74 | 6f 4c 6f 77 65 72 43 61 | ? val.t|oLowerCa|
|00001860| 73 65 28 29 20 3a 20 74 | 68 69 73 2e 64 65 66 61 |se() : t|his.defa|
|00001870| 75 6c 74 42 65 68 61 76 | 69 6f 72 3b 0d 0a 20 20 |ultBehav|ior;.. |
|00001880| 20 20 20 20 20 20 3c 2f | 73 65 74 74 65 72 3e 0d | </|setter>.|
|00001890| 0a 20 20 20 20 20 20 3c | 2f 70 72 6f 70 65 72 74 |. <|/propert|
|000018a0| 79 3e 0d 0a 0d 0a 20 20 | 20 20 20 20 3c 66 69 65 |y>.... | <fie|
|000018b0| 6c 64 20 6e 61 6d 65 3d | 22 62 65 68 61 76 69 6f |ld name=|"behavio|
|000018c0| 72 46 69 65 6c 64 22 3e | 22 73 63 72 6f 6c 6c 22 |rField">|"scroll"|
|000018d0| 3c 2f 66 69 65 6c 64 3e | 0d 0a 0d 0a 20 20 20 20 |</field>|.... |
|000018e0| 20 20 3c 66 69 65 6c 64 | 20 6e 61 6d 65 3d 22 64 | <field| name="d|
|000018f0| 69 72 73 69 67 6e 22 3e | 31 3c 2f 66 69 65 6c 64 |irsign">|1</field|
|00001900| 3e 0d 0a 20 20 20 20 20 | 20 3c 66 69 65 6c 64 20 |>.. | <field |
|00001910| 6e 61 6d 65 3d 22 73 74 | 61 72 74 41 74 22 3e 30 |name="st|artAt">0|
|00001920| 3c 2f 66 69 65 6c 64 3e | 0d 0a 20 20 20 20 20 20 |</field>|.. |
|00001930| 3c 66 69 65 6c 64 20 6e | 61 6d 65 3d 22 73 74 6f |<field n|ame="sto|
|00001940| 70 41 74 22 3e 30 3c 2f | 66 69 65 6c 64 3e 0d 0a |pAt">0</|field>..|
|00001950| 20 20 20 20 20 20 3c 66 | 69 65 6c 64 20 6e 61 6d | <f|ield nam|
|00001960| 65 3d 22 6e 65 77 50 6f | 73 69 74 69 6f 6e 22 3e |e="newPo|sition">|
|00001970| 30 3c 2f 66 69 65 6c 64 | 3e 0d 0a 20 20 20 20 20 |0</field|>.. |
|00001980| 20 3c 66 69 65 6c 64 20 | 6e 61 6d 65 3d 22 72 75 | <field |name="ru|
|00001990| 6e 49 64 22 3e 30 3c 2f | 66 69 65 6c 64 3e 0d 0a |nId">0</|field>..|
|000019a0| 0d 0a 20 20 20 20 20 20 | 3c 66 69 65 6c 64 20 6e |.. |<field n|
|000019b0| 61 6d 65 3d 22 6f 72 69 | 67 69 6e 61 6c 48 65 69 |ame="ori|ginalHei|
|000019c0| 67 68 74 22 3e 30 3c 2f | 66 69 65 6c 64 3e 0d 0a |ght">0</|field>..|
|000019d0| 20 20 20 20 20 20 3c 66 | 69 65 6c 64 20 6e 61 6d | <f|ield nam|
|000019e0| 65 3d 22 73 74 61 72 74 | 4e 65 77 44 69 72 65 63 |e="start|NewDirec|
|000019f0| 74 69 6f 6e 22 3e 74 72 | 75 65 3c 2f 66 69 65 6c |tion">tr|ue</fiel|
|00001a00| 64 3e 0d 0a 0d 0a 20 20 | 20 20 20 20 3c 70 72 6f |d>.... | <pro|
|00001a10| 70 65 72 74 79 20 6e 61 | 6d 65 3d 22 6f 75 74 65 |perty na|me="oute|
|00001a20| 72 44 69 76 22 0d 0a 20 | 20 20 20 20 20 20 20 6f |rDiv".. | o|
|00001a30| 6e 67 65 74 3d 22 72 65 | 74 75 72 6e 20 64 6f 63 |nget="re|turn doc|
|00001a40| 75 6d 65 6e 74 2e 67 65 | 74 41 6e 6f 6e 79 6d 6f |ument.ge|tAnonymo|
|00001a50| 75 73 4e 6f 64 65 73 28 | 74 68 69 73 29 5b 30 5d |usNodes(|this)[0]|
|00001a60| 22 0d 0a 20 20 20 20 20 | 20 2f 3e 0d 0a 0d 0a 20 |".. | />.... |
|00001a70| 20 20 20 20 20 3c 70 72 | 6f 70 65 72 74 79 20 6e | <pr|operty n|
|00001a80| 61 6d 65 3d 22 69 6e 6e | 65 72 44 69 76 22 0d 0a |ame="inn|erDiv"..|
|00001a90| 20 20 20 20 20 20 20 20 | 6f 6e 67 65 74 3d 22 72 | |onget="r|
|00001aa0| 65 74 75 72 6e 20 64 6f | 63 75 6d 65 6e 74 2e 67 |eturn do|cument.g|
|00001ab0| 65 74 41 6e 6f 6e 79 6d | 6f 75 73 45 6c 65 6d 65 |etAnonym|ousEleme|
|00001ac0| 6e 74 42 79 41 74 74 72 | 69 62 75 74 65 28 74 68 |ntByAttr|ibute(th|
|00001ad0| 69 73 2c 20 27 61 6e 6f | 6e 69 64 27 2c 20 27 69 |is, 'ano|nid', 'i|
|00001ae0| 6e 6e 65 72 44 69 76 27 | 29 3b 22 0d 0a 20 20 20 |nnerDiv'|);".. |
|00001af0| 20 20 20 2f 3e 0d 0a 0d | 0a 20 20 20 20 20 20 3c | />...|. <|
|00001b00| 70 72 6f 70 65 72 74 79 | 20 6e 61 6d 65 3d 22 68 |property| name="h|
|00001b10| 65 69 67 68 74 22 0d 0a | 20 20 20 20 20 20 20 20 |eight"..| |
|00001b20| 6f 6e 67 65 74 3d 22 72 | 65 74 75 72 6e 20 74 68 |onget="r|eturn th|
|00001b30| 69 73 2e 67 65 74 41 74 | 74 72 69 62 75 74 65 28 |is.getAt|tribute(|
|00001b40| 27 68 65 69 67 68 74 27 | 29 3b 22 0d 0a 20 20 20 |'height'|);".. |
|00001b50| 20 20 20 2f 3e 0d 0a 0d | 0a 20 20 20 20 20 20 3c | />...|. <|
|00001b60| 70 72 6f 70 65 72 74 79 | 20 6e 61 6d 65 3d 22 77 |property| name="w|
|00001b70| 69 64 74 68 22 3e 0d 0a | 20 20 20 20 20 20 20 20 |idth">..| |
|00001b80| 3c 67 65 74 74 65 72 3e | 0d 0a 20 20 20 20 20 20 |<getter>|.. |
|00001b90| 20 20 20 20 3c 21 5b 43 | 44 41 54 41 5b 0d 0a 20 | <![C|DATA[.. |
|00001ba0| 20 20 20 20 20 20 20 20 | 20 76 61 72 20 72 76 20 | | var rv |
|00001bb0| 3d 20 22 31 70 78 22 3b | 0d 0a 20 20 20 20 20 20 |= "1px";|.. |
|00001bc0| 20 20 20 20 69 66 20 28 | 74 68 69 73 2e 68 61 73 | if (|this.has|
|00001bd0| 41 74 74 72 69 62 75 74 | 65 28 22 77 69 64 74 68 |Attribut|e("width|
|00001be0| 22 29 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |")).. | |
|00001bf0| 20 72 76 20 3d 20 74 68 | 69 73 2e 67 65 74 41 74 | rv = th|is.getAt|
|00001c00| 74 72 69 62 75 74 65 28 | 22 77 69 64 74 68 22 29 |tribute(|"width")|
|00001c10| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 65 6c 73 |;.. | els|
|00001c20| 65 20 69 66 20 28 74 68 | 69 73 2e 6f 66 66 73 65 |e if (th|is.offse|
|00001c30| 74 57 69 64 74 68 29 20 | 7b 0d 0a 20 20 20 20 20 |tWidth) |{.. |
|00001c40| 20 20 20 20 20 20 20 2f | 2f 20 69 66 20 74 68 65 | /|/ if the|
|00001c50| 20 65 6c 65 6d 65 6e 74 | 20 68 61 73 20 61 6e 20 | element| has an |
|00001c60| 6f 66 66 73 65 74 57 69 | 64 74 68 2c 20 64 6f 6e |offsetWi|dth, don|
|00001c70| 27 74 20 73 65 74 20 61 | 20 77 69 64 74 68 0d 0a |'t set a| width..|
|00001c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 76 20 3d | | rv =|
|00001c90| 20 22 22 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | "";.. | |
|00001ca0| 7d 20 65 6c 73 65 20 69 | 66 20 28 74 68 69 73 2e |} else i|f (this.|
|00001cb0| 6f 66 66 73 65 74 50 61 | 72 65 6e 74 29 20 7b 0d |offsetPa|rent) {.|
|00001cc0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 76 61 72 |. | var|
|00001cd0| 20 6d 79 45 6c 65 6d 20 | 3d 20 74 68 69 73 2e 6f | myElem |= this.o|
|00001ce0| 66 66 73 65 74 50 61 72 | 65 6e 74 3b 0d 0a 0d 0a |ffsetPar|ent;....|
|00001cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2f 20 6c | | // l|
|00001d00| 65 74 73 20 77 61 6c 6b | 20 75 70 20 74 68 65 20 |ets walk| up the |
|00001d10| 6f 66 66 73 65 74 50 61 | 72 65 6e 74 20 74 72 65 |offsetPa|rent tre|
|00001d20| 65 20 6c 6f 6f 6b 69 6e | 67 20 66 6f 72 20 61 6e |e lookin|g for an|
|00001d30| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2f |.. | //|
|00001d40| 20 65 6c 65 6d 65 6e 74 | 20 77 69 74 68 20 61 20 | element| with a |
|00001d50| 77 69 64 74 68 2e 0d 0a | 0d 0a 20 20 20 20 20 20 |width...|.. |
|00001d60| 20 20 20 20 20 20 77 68 | 69 6c 65 20 28 6d 79 45 | wh|ile (myE|
|00001d70| 6c 65 6d 2e 6f 66 66 73 | 65 74 50 61 72 65 6e 74 |lem.offs|etParent|
|00001d80| 20 26 26 20 28 6d 79 45 | 6c 65 6d 2e 6f 66 66 73 | && (myE|lem.offs|
|00001d90| 65 74 57 69 64 74 68 20 | 3c 3d 20 30 29 29 0d 0a |etWidth |<= 0))..|
|00001da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6d 79 | | my|
|00001db0| 45 6c 65 6d 20 3d 20 6d | 79 45 6c 65 6d 2e 6f 66 |Elem = m|yElem.of|
|00001dc0| 66 73 65 74 50 61 72 65 | 6e 74 3b 0d 0a 0d 0a 20 |fsetPare|nt;.... |
|00001dd0| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 20 28 6d | | if (m|
|00001de0| 79 45 6c 65 6d 29 0d 0a | 20 20 20 20 20 20 20 20 |yElem)..| |
|00001df0| 20 20 20 20 20 20 72 76 | 20 3d 20 6d 79 45 6c 65 | rv| = myEle|
|00001e00| 6d 2e 6f 66 66 73 65 74 | 57 69 64 74 68 20 2b 20 |m.offset|Width + |
|00001e10| 22 70 78 22 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |"px";.. | |
|00001e20| 20 7d 0d 0a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | }.... | |
|00001e30| 72 65 74 75 72 6e 20 72 | 76 3b 0d 0a 20 20 20 20 |return r|v;.. |
|00001e40| 20 20 20 20 20 20 5d 5d | 3e 0d 0a 20 20 20 20 20 | ]]|>.. |
|00001e50| 20 20 20 3c 2f 67 65 74 | 74 65 72 3e 0d 0a 20 20 | </get|ter>.. |
|00001e60| 20 20 20 20 3c 2f 70 72 | 6f 70 65 72 74 79 3e 0d | </pr|operty>.|
|00001e70| 0a 0d 0a 20 20 20 20 20 | 20 3c 21 2d 2d 20 46 6f |... | <!-- Fo|
|00001e80| 72 20 73 6e 69 66 66 69 | 6e 67 20 70 75 72 70 6f |r sniffi|ng purpo|
|00001e90| 73 65 73 20 2d 2d 3e 0d | 0a 20 20 20 20 20 20 3c |ses -->.|. <|
|00001ea0| 66 69 65 6c 64 20 6e 61 | 6d 65 3d 22 6e 73 4d 61 |field na|me="nsMa|
|00001eb0| 72 71 75 65 65 56 65 72 | 73 69 6f 6e 22 3e 22 30 |rqueeVer|sion">"0|
|00001ec0| 2e 39 2e 37 22 3c 2f 66 | 69 65 6c 64 3e 0d 0a 0d |.9.7"</f|ield>...|
|00001ed0| 0a 20 20 20 20 20 20 3c | 6d 65 74 68 6f 64 20 6e |. <|method n|
|00001ee0| 61 6d 65 3d 22 73 74 61 | 72 74 22 3e 0d 0a 20 20 |ame="sta|rt">.. |
|00001ef0| 20 20 20 20 20 20 3c 62 | 6f 64 79 3e 0d 0a 20 20 | <b|ody>.. |
|00001f00| 20 20 20 20 20 20 3c 21 | 5b 43 44 41 54 41 5b 0d | <!|[CDATA[.|
|00001f10| 0a 20 20 20 20 20 20 20 | 20 20 20 74 68 69 73 2e |. | this.|
|00001f20| 5f 64 6f 4d 6f 76 65 28 | 66 61 6c 73 65 29 3b 0d |_doMove(|false);.|
|00001f30| 0a 20 20 20 20 20 20 20 | 20 5d 5d 3e 0d 0a 20 20 |. | ]]>.. |
|00001f40| 20 20 20 20 20 20 3c 2f | 62 6f 64 79 3e 0d 0a 20 | </|body>.. |
|00001f50| 20 20 20 20 20 3c 2f 6d | 65 74 68 6f 64 3e 0d 0a | </m|ethod>..|
|00001f60| 0d 0a 20 20 20 20 20 20 | 3c 6d 65 74 68 6f 64 20 |.. |<method |
|00001f70| 6e 61 6d 65 3d 22 73 74 | 6f 70 22 3e 0d 0a 20 20 |name="st|op">.. |
|00001f80| 20 20 20 20 20 20 3c 62 | 6f 64 79 3e 0d 0a 20 20 | <b|ody>.. |
|00001f90| 20 20 20 20 20 20 3c 21 | 5b 43 44 41 54 41 5b 0d | <!|[CDATA[.|
|00001fa0| 0a 20 20 20 20 20 20 20 | 20 20 20 69 66 20 28 74 |. | if (t|
|00001fb0| 68 69 73 2e 72 75 6e 49 | 64 20 21 3d 20 30 29 0d |his.runI|d != 0).|
|00001fc0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 63 6c 65 |. | cle|
|00001fd0| 61 72 54 69 6d 65 6f 75 | 74 28 74 68 69 73 2e 72 |arTimeou|t(this.r|
|00001fe0| 75 6e 49 64 29 3b 0d 0a | 0d 0a 20 20 20 20 20 20 |unId);..|.. |
|00001ff0| 20 20 20 20 74 68 69 73 | 2e 72 75 6e 49 64 20 3d | this|.runId =|
|00002000| 20 30 3b 0d 0a 20 20 20 | 20 20 20 20 20 5d 5d 3e | 0;.. | ]]>|
|00002010| 0d 0a 20 20 20 20 20 20 | 20 20 3c 2f 62 6f 64 79 |.. | </body|
|00002020| 3e 0d 0a 20 20 20 20 20 | 20 3c 2f 6d 65 74 68 6f |>.. | </metho|
|00002030| 64 3e 0d 0a 0d 0a 20 20 | 20 20 20 20 3c 6d 65 74 |d>.... | <met|
|00002040| 68 6f 64 20 6e 61 6d 65 | 3d 22 5f 64 6f 4d 6f 76 |hod name|="_doMov|
|00002050| 65 22 3e 0d 0a 20 20 20 | 20 20 20 20 20 3c 70 61 |e">.. | <pa|
|00002060| 72 61 6d 65 74 65 72 20 | 6e 61 6d 65 3d 22 61 53 |rameter |name="aS|
|00002070| 6b 69 70 53 65 74 74 69 | 6e 67 4e 65 77 50 6f 73 |kipSetti|ngNewPos|
|00002080| 69 74 69 6f 6e 22 2f 3e | 0d 0a 20 20 20 20 20 20 |ition"/>|.. |
|00002090| 20 20 3c 62 6f 64 79 3e | 0d 0a 20 20 20 20 20 20 | <body>|.. |
|000020a0| 20 20 3c 21 5b 43 44 41 | 54 41 5b 0d 0a 0d 0a 20 | <![CDA|TA[.... |
|000020b0| 20 20 20 20 20 20 20 20 | 20 74 68 69 73 2e 73 74 | | this.st|
|000020c0| 6f 70 28 29 3b 0d 0a 0d | 0a 20 20 20 20 20 20 20 |op();...|. |
|000020d0| 20 20 20 2f 2f 73 74 61 | 72 74 4e 65 77 44 69 72 | //sta|rtNewDir|
|000020e0| 65 63 74 69 6f 6e 20 69 | 73 20 74 72 75 65 20 61 |ection i|s true a|
|000020f0| 74 20 66 69 72 73 74 20 | 6c 6f 61 64 20 61 6e 64 |t first |load and|
|00002100| 20 77 68 65 6e 65 76 65 | 72 20 74 68 65 20 64 69 | wheneve|r the di|
|00002110| 72 65 63 74 69 6f 6e 20 | 69 73 20 63 68 61 6e 67 |rection |is chang|
|00002120| 65 64 0d 0a 20 20 20 20 | 20 20 20 20 20 20 69 66 |ed.. | if|
|00002130| 20 28 74 68 69 73 2e 73 | 74 61 72 74 4e 65 77 44 | (this.s|tartNewD|
|00002140| 69 72 65 63 74 69 6f 6e | 29 20 7b 0d 0a 20 20 20 |irection|) {.. |
|00002150| 20 20 20 20 20 20 20 20 | 20 74 68 69 73 2e 73 74 | | this.st|
|00002160| 61 72 74 4e 65 77 44 69 | 72 65 63 74 69 6f 6e 20 |artNewDi|rection |
|00002170| 3d 20 66 61 6c 73 65 3b | 20 2f 2f 77 65 20 6f 6e |= false;| //we on|
|00002180| 6c 79 20 77 61 6e 74 20 | 74 68 69 73 20 74 6f 20 |ly want |this to |
|00002190| 72 75 6e 20 6f 6e 63 65 | 20 65 76 65 72 79 20 73 |run once| every s|
|000021a0| 63 72 6f 6c 6c 20 64 69 | 72 65 63 74 69 6f 6e 20 |croll di|rection |
|000021b0| 63 68 61 6e 67 65 0d 0a | 0d 0a 20 20 20 20 20 20 |change..|.. |
|000021c0| 20 20 20 20 20 20 69 66 | 20 28 28 74 68 69 73 2e | if| ((this.|
|000021d0| 64 69 72 65 63 74 69 6f | 6e 46 69 65 6c 64 20 3d |directio|nField =|
|000021e0| 3d 20 22 75 70 22 29 20 | 7c 7c 20 28 74 68 69 73 |= "up") ||| (this|
|000021f0| 2e 64 69 72 65 63 74 69 | 6f 6e 46 69 65 6c 64 20 |.directi|onField |
|00002200| 3d 3d 20 22 64 6f 77 6e | 22 29 29 0d 0a 20 20 20 |== "down|")).. |
|00002210| 20 20 20 20 20 20 20 20 | 20 7b 0d 0a 20 20 20 20 | | {.. |
|00002220| 20 20 20 20 20 20 20 20 | 20 20 2f 2f 20 22 22 2c | | // "",|
|00002230| 20 30 20 61 6e 64 20 65 | 6d 70 74 79 20 68 65 69 | 0 and e|mpty hei|
|00002240| 67 68 74 20 73 68 6f 75 | 6c 64 20 64 65 66 61 75 |ght shou|ld defau|
|00002250| 6c 74 20 74 6f 20 32 30 | 30 70 78 0d 0a 20 20 20 |lt to 20|0px.. |
|00002260| 20 20 20 20 20 20 20 20 | 20 20 20 76 61 72 20 68 | | var h|
|00002270| 65 69 67 68 74 20 3d 20 | 28 74 68 69 73 2e 67 65 |eight = |(this.ge|
|00002280| 74 41 74 74 72 69 62 75 | 74 65 28 22 68 65 69 67 |tAttribu|te("heig|
|00002290| 68 74 22 29 20 21 3d 20 | 22 30 22 20 26 26 20 74 |ht") != |"0" && t|
|000022a0| 68 69 73 2e 67 65 74 41 | 74 74 72 69 62 75 74 65 |his.getA|ttribute|
|000022b0| 28 22 68 65 69 67 68 74 | 22 29 29 20 7c 7c 20 22 |("height|")) || "|
|000022c0| 32 30 30 70 78 22 3b 0d | 0a 0d 0a 20 20 20 20 20 |200px";.|... |
|000022d0| 20 20 20 20 20 20 20 20 | 20 2f 2f 20 73 75 70 70 | | // supp|
|000022e0| 6f 72 74 20 25 20 68 65 | 69 67 68 74 73 0d 0a 20 |ort % he|ights.. |
|000022f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 | | if |
|00002300| 28 2f 25 2f 2e 74 65 73 | 74 28 68 65 69 67 68 74 |(/%/.tes|t(height|
|00002310| 29 29 20 7b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |)) {.. | |
|00002320| 20 20 20 20 20 20 68 65 | 69 67 68 74 20 3d 20 70 | he|ight = p|
|00002330| 61 72 73 65 49 6e 74 28 | 27 30 27 20 2b 20 68 65 |arseInt(|'0' + he|
|00002340| 69 67 68 74 2c 20 31 30 | 29 3b 0d 0a 20 20 20 20 |ight, 10|);.. |
|00002350| 20 20 20 20 20 20 20 20 | 20 20 20 20 68 65 69 67 | | heig|
|00002360| 68 74 20 3d 20 28 68 65 | 69 67 68 74 2f 31 30 30 |ht = (he|ight/100|
|00002370| 29 20 2a 20 74 68 69 73 | 2e 6f 75 74 65 72 44 69 |) * this|.outerDi|
|00002380| 76 2e 6f 66 66 73 65 74 | 48 65 69 67 68 74 3b 0d |v.offset|Height;.|
|00002390| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7d |. | }|
|000023a0| 0d 0a 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|000023b0| 20 20 74 68 69 73 2e 6f | 75 74 65 72 44 69 76 2e | this.o|uterDiv.|
|000023c0| 73 74 79 6c 65 2e 68 65 | 69 67 68 74 20 3d 20 68 |style.he|ight = h|
|000023d0| 65 69 67 68 74 3b 0d 0a | 0d 0a 20 20 20 20 20 20 |eight;..|.. |
|000023e0| 20 20 20 20 20 20 20 20 | 74 68 69 73 2e 69 6e 6e | |this.inn|
|000023f0| 65 72 44 69 76 2e 73 74 | 79 6c 65 2e 70 61 64 64 |erDiv.st|yle.padd|
|00002400| 69 6e 67 20 3d 20 68 65 | 69 67 68 74 20 2b 20 22 |ing = he|ight + "|
|00002410| 20 30 22 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | 0";.. | |
|00002420| 20 20 20 20 74 68 69 73 | 2e 69 6e 6e 65 72 44 69 | this|.innerDi|
|00002430| 76 2e 73 74 79 6c 65 2e | 77 68 69 74 65 53 70 61 |v.style.|whiteSpa|
|00002440| 63 65 20 3d 20 22 22 3b | 0d 0a 20 20 20 20 20 20 |ce = "";|.. |
|00002450| 20 20 20 20 20 20 7d 0d | 0a 20 20 20 20 20 20 20 | }.|. |
|00002460| 20 20 20 20 20 65 6c 73 | 65 20 7b 0d 0a 20 20 20 | els|e {.. |
|00002470| 20 20 20 20 20 20 20 20 | 20 20 20 74 68 69 73 2e | | this.|
|00002480| 6f 75 74 65 72 44 69 76 | 2e 73 74 79 6c 65 2e 68 |outerDiv|.style.h|
|00002490| 65 69 67 68 74 20 3d 20 | 22 22 3b 0d 0a 0d 0a 20 |eight = |"";.... |
|000024a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 68 69 | | thi|
|000024b0| 73 2e 69 6e 6e 65 72 44 | 69 76 2e 73 74 79 6c 65 |s.innerD|iv.style|
|000024c0| 2e 70 61 64 64 69 6e 67 | 20 3d 20 22 30 70 78 22 |.padding| = "0px"|
|000024d0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.. | |
|000024e0| 20 74 68 69 73 2e 69 6e | 6e 65 72 44 69 76 2e 73 | this.in|nerDiv.s|
|000024f0| 74 79 6c 65 2e 77 68 69 | 74 65 53 70 61 63 65 20 |tyle.whi|teSpace |
|00002500| 3d 20 22 6e 6f 77 72 61 | 70 22 3b 0d 0a 20 20 20 |= "nowra|p";.. |
|00002510| 20 20 20 20 20 20 20 20 | 20 7d 0d 0a 0d 0a 20 20 | | }.... |
|00002520| 20 20 20 20 20 20 20 20 | 20 20 73 77 69 74 63 68 | | switch|
|00002530| 20 28 74 68 69 73 2e 64 | 69 72 65 63 74 69 6f 6e | (this.d|irection|
|00002540| 46 69 65 6c 64 29 0d 0a | 20 20 20 20 20 20 20 20 |Field)..| |
|00002550| 20 20 20 20 7b 0d 0a 20 | 20 20 20 20 20 20 20 20 | {.. | |
|00002560| 20 20 20 20 20 63 61 73 | 65 20 22 75 70 22 3a 0d | cas|e "up":.|
|00002570| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002580| 20 74 68 69 73 2e 64 69 | 72 73 69 67 6e 20 3d 20 | this.di|rsign = |
|00002590| 31 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |1;.. | |
|000025a0| 20 20 20 20 74 68 69 73 | 2e 73 74 61 72 74 41 74 | this|.startAt|
|000025b0| 20 3d 20 28 74 68 69 73 | 2e 62 65 68 61 76 69 6f | = (this|.behavio|
|000025c0| 72 46 69 65 6c 64 20 3d | 3d 20 27 61 6c 74 65 72 |rField =|= 'alter|
|000025d0| 6e 61 74 65 27 29 20 3f | 20 74 68 69 73 2e 6f 72 |nate') ?| this.or|
|000025e0| 69 67 69 6e 61 6c 48 65 | 69 67 68 74 20 3a 20 30 |iginalHe|ight : 0|
|000025f0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.. | |
|00002600| 20 20 20 74 68 69 73 2e | 73 74 6f 70 41 74 20 20 | this.|stopAt |
|00002610| 3d 20 74 68 69 73 2e 69 | 6e 6e 65 72 44 69 76 2e |= this.i|nnerDiv.|
|00002620| 6f 66 66 73 65 74 48 65 | 69 67 68 74 20 2d 20 70 |offsetHe|ight - p|
|00002630| 61 72 73 65 49 6e 74 28 | 74 68 69 73 2e 6f 75 74 |arseInt(|this.out|
|00002640| 65 72 44 69 76 2e 73 74 | 79 6c 65 2e 68 65 69 67 |erDiv.st|yle.heig|
|00002650| 68 74 29 20 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |ht) .. | |
|00002660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002670| 20 20 20 20 20 2d 20 28 | 28 74 68 69 73 2e 62 65 | - (|(this.be|
|00002680| 68 61 76 69 6f 72 46 69 | 65 6c 64 20 3d 3d 20 27 |haviorFi|eld == '|
|00002690| 61 6c 74 65 72 6e 61 74 | 65 27 29 20 3f 20 74 68 |alternat|e') ? th|
|000026a0| 69 73 2e 6f 72 69 67 69 | 6e 61 6c 48 65 69 67 68 |is.origi|nalHeigh|
|000026b0| 74 20 3a 20 30 29 3b 20 | 20 20 20 20 20 20 20 20 |t : 0); | |
|000026c0| 20 20 20 20 20 20 0d 0a | 20 20 20 20 20 20 20 20 | ..| |
|000026d0| 20 20 20 20 20 20 62 72 | 65 61 6b 3b 0d 0a 0d 0a | br|eak;....|
|000026e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 61 | | ca|
|000026f0| 73 65 20 22 64 6f 77 6e | 22 3a 0d 0a 20 20 20 20 |se "down|":.. |
|00002700| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 68 69 73 | | this|
|00002710| 2e 64 69 72 73 69 67 6e | 20 3d 20 2d 31 3b 0d 0a |.dirsign| = -1;..|
|00002720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002730| 74 68 69 73 2e 73 74 61 | 72 74 41 74 20 3d 20 74 |this.sta|rtAt = t|
|00002740| 68 69 73 2e 69 6e 6e 65 | 72 44 69 76 2e 6f 66 66 |his.inne|rDiv.off|
|00002750| 73 65 74 48 65 69 67 68 | 74 20 2d 20 70 61 72 73 |setHeigh|t - pars|
|00002760| 65 49 6e 74 28 74 68 69 | 73 2e 6f 75 74 65 72 44 |eInt(thi|s.outerD|
|00002770| 69 76 2e 73 74 79 6c 65 | 2e 68 65 69 67 68 74 29 |iv.style|.height)|
|00002780| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00002790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027a0| 20 2d 20 28 28 74 68 69 | 73 2e 62 65 68 61 76 69 | - ((thi|s.behavi|
|000027b0| 6f 72 46 69 65 6c 64 20 | 3d 3d 20 27 61 6c 74 65 |orField |== 'alte|
|000027c0| 72 6e 61 74 65 27 29 20 | 3f 20 74 68 69 73 2e 6f |rnate') |? this.o|
|000027d0| 72 69 67 69 6e 61 6c 48 | 65 69 67 68 74 20 3a 20 |riginalH|eight : |
|000027e0| 30 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |0);.. | |
|000027f0| 20 20 20 20 20 74 68 69 | 73 2e 73 74 6f 70 41 74 | thi|s.stopAt|
|00002800| 20 20 3d 20 28 74 68 69 | 73 2e 62 65 68 61 76 69 | = (thi|s.behavi|
|00002810| 6f 72 46 69 65 6c 64 20 | 3d 3d 20 27 61 6c 74 65 |orField |== 'alte|
|00002820| 72 6e 61 74 65 27 29 20 | 3f 20 74 68 69 73 2e 6f |rnate') |? this.o|
|00002830| 72 69 67 69 6e 61 6c 48 | 65 69 67 68 74 20 3a 20 |riginalH|eight : |
|00002840| 30 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |0;.. | |
|00002850| 20 20 62 72 65 61 6b 3b | 0d 0a 0d 0a 20 20 20 20 | break;|.... |
|00002860| 20 20 20 20 20 20 20 20 | 20 20 63 61 73 65 20 22 | | case "|
|00002870| 72 69 67 68 74 22 3a 0d | 0a 20 20 20 20 20 20 20 |right":.|. |
|00002880| 20 20 20 20 20 20 20 20 | 20 74 68 69 73 2e 64 69 | | this.di|
|00002890| 72 73 69 67 6e 20 3d 20 | 2d 31 3b 0d 0a 20 20 20 |rsign = |-1;.. |
|000028a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 68 69 | | thi|
|000028b0| 73 2e 73 74 6f 70 41 74 | 20 20 3d 20 28 74 68 69 |s.stopAt| = (thi|
|000028c0| 73 2e 62 65 68 61 76 69 | 6f 72 46 69 65 6c 64 20 |s.behavi|orField |
|000028d0| 21 3d 20 27 61 6c 74 65 | 72 6e 61 74 65 27 29 20 |!= 'alte|rnate') |
|000028e0| 3f 20 74 68 69 73 2e 69 | 6e 6e 65 72 44 69 76 2e |? this.i|nnerDiv.|
|000028f0| 6f 66 66 73 65 74 4c 65 | 66 74 20 2d 20 74 68 69 |offsetLe|ft - thi|
|00002900| 73 2e 6f 75 74 65 72 44 | 69 76 2e 6f 66 66 73 65 |s.outerD|iv.offse|
|00002910| 74 57 69 64 74 68 20 3a | 20 74 68 69 73 2e 69 6e |tWidth :| this.in|
|00002920| 6e 65 72 44 69 76 2e 6f | 66 66 73 65 74 57 69 64 |nerDiv.o|ffsetWid|
|00002930| 74 68 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |th;.. | |
|00002940| 20 20 20 20 20 74 68 69 | 73 2e 73 74 61 72 74 41 | thi|s.startA|
|00002950| 74 20 3d 20 74 68 69 73 | 2e 6f 75 74 65 72 44 69 |t = this|.outerDi|
|00002960| 76 2e 6f 66 66 73 65 74 | 57 69 64 74 68 20 0d 0a |v.offset|Width ..|
|00002970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2b | | +|
|00002990| 20 28 28 74 68 69 73 2e | 62 65 68 61 76 69 6f 72 | ((this.|behavior|
|000029a0| 46 69 65 6c 64 20 21 3d | 20 27 61 6c 74 65 72 6e |Field !=| 'altern|
|000029b0| 61 74 65 27 29 20 3f 20 | 28 74 68 69 73 2e 69 6e |ate') ? |(this.in|
|000029c0| 6e 65 72 44 69 76 2e 6f | 66 66 73 65 74 57 69 64 |nerDiv.o|ffsetWid|
|000029d0| 74 68 20 2b 20 74 68 69 | 73 2e 73 74 6f 70 41 74 |th + thi|s.stopAt|
|000029e0| 29 20 3a 20 30 29 3b 20 | 20 20 0d 0a 20 20 20 20 |) : 0); | .. |
|000029f0| 20 20 20 20 20 20 20 20 | 20 20 62 72 65 61 6b 3b | | break;|
|00002a00| 0d 0a 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00002a10| 20 20 63 61 73 65 20 22 | 6c 65 66 74 22 3a 0d 0a | case "|left":..|
|00002a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 64 65 | | de|
|00002a30| 66 61 75 6c 74 3a 0d 0a | 20 20 20 20 20 20 20 20 |fault:..| |
|00002a40| 20 20 20 20 20 20 20 20 | 74 68 69 73 2e 64 69 72 | |this.dir|
|00002a50| 73 69 67 6e 20 3d 20 31 | 3b 0d 0a 20 20 20 20 20 |sign = 1|;.. |
|00002a60| 20 20 20 20 20 20 20 20 | 20 20 20 74 68 69 73 2e | | this.|
|00002a70| 73 74 61 72 74 41 74 20 | 3d 20 28 74 68 69 73 2e |startAt |= (this.|
|00002a80| 62 65 68 61 76 69 6f 72 | 46 69 65 6c 64 20 21 3d |behavior|Field !=|
|00002a90| 20 27 61 6c 74 65 72 6e | 61 74 65 27 29 20 3f 20 | 'altern|ate') ? |
|00002aa0| 28 74 68 69 73 2e 69 6e | 6e 65 72 44 69 76 2e 6f |(this.in|nerDiv.o|
|00002ab0| 66 66 73 65 74 4c 65 66 | 74 20 2d 20 74 68 69 73 |ffsetLef|t - this|
|00002ac0| 2e 6f 75 74 65 72 44 69 | 76 2e 6f 66 66 73 65 74 |.outerDi|v.offset|
|00002ad0| 57 69 64 74 68 29 20 3a | 20 74 68 69 73 2e 69 6e |Width) :| this.in|
|00002ae0| 6e 65 72 44 69 76 2e 6f | 66 66 73 65 74 57 69 64 |nerDiv.o|ffsetWid|
|00002af0| 74 68 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |th;.. | |
|00002b00| 20 20 20 20 20 74 68 69 | 73 2e 73 74 6f 70 41 74 | thi|s.stopAt|
|00002b10| 20 20 3d 20 74 68 69 73 | 2e 6f 75 74 65 72 44 69 | = this|.outerDi|
|00002b20| 76 2e 6f 66 66 73 65 74 | 57 69 64 74 68 0d 0a 20 |v.offset|Width.. |
|00002b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2b 20 | | + |
|00002b50| 28 28 74 68 69 73 2e 62 | 65 68 61 76 69 6f 72 46 |((this.b|ehaviorF|
|00002b60| 69 65 6c 64 20 21 3d 20 | 27 61 6c 74 65 72 6e 61 |ield != |'alterna|
|00002b70| 74 65 27 29 20 3f 20 28 | 74 68 69 73 2e 69 6e 6e |te') ? (|this.inn|
|00002b80| 65 72 44 69 76 2e 6f 66 | 66 73 65 74 57 69 64 74 |erDiv.of|fsetWidt|
|00002b90| 68 20 2b 20 74 68 69 73 | 2e 73 74 61 72 74 41 74 |h + this|.startAt|
|00002ba0| 29 20 3a 20 30 29 3b 0d | 0a 20 20 20 20 20 20 20 |) : 0);.|. |
|00002bb0| 20 20 20 20 20 7d 0d 0a | 0d 0a 20 20 20 20 20 20 | }..|.. |
|00002bc0| 20 20 20 20 20 20 2f 2f | 20 69 66 20 74 68 65 20 | //| if the |
|00002bd0| 64 69 72 65 63 74 69 6f | 6e 20 61 74 74 72 69 62 |directio|n attrib|
|00002be0| 75 74 65 20 69 73 20 63 | 68 61 6e 67 65 64 2c 20 |ute is c|hanged, |
|00002bf0| 64 6f 6e 27 74 20 72 65 | 73 65 74 20 74 68 65 20 |don't re|set the |
|00002c00| 73 74 61 72 74 69 6e 67 | 20 70 6f 73 69 74 69 6f |starting| positio|
|00002c10| 6e 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 69 |n.. | i|
|00002c20| 66 20 28 21 61 53 6b 69 | 70 53 65 74 74 69 6e 67 |f (!aSki|pSetting|
|00002c30| 4e 65 77 50 6f 73 69 74 | 69 6f 6e 29 0d 0a 20 20 |NewPosit|ion).. |
|00002c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 68 69 73 | | this|
|00002c50| 2e 6e 65 77 50 6f 73 69 | 74 69 6f 6e 20 3d 20 74 |.newPosi|tion = t|
|00002c60| 68 69 73 2e 73 74 61 72 | 74 41 74 3b 0d 0a 20 20 |his.star|tAt;.. |
|00002c70| 20 20 20 20 20 20 20 20 | 7d 20 2f 2f 65 6e 64 20 | |} //end |
|00002c80| 69 66 0d 0a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |if.... | |
|00002c90| 74 68 69 73 2e 6e 65 77 | 50 6f 73 69 74 69 6f 6e |this.new|Position|
|00002ca0| 20 3d 20 70 61 72 73 65 | 49 6e 74 28 74 68 69 73 | = parse|Int(this|
|00002cb0| 2e 6e 65 77 50 6f 73 69 | 74 69 6f 6e 29 20 2b 20 |.newPosi|tion) + |
|00002cc0| 28 74 68 69 73 2e 64 69 | 72 73 69 67 6e 20 2a 20 |(this.di|rsign * |
|00002cd0| 74 68 69 73 2e 73 63 72 | 6f 6c 6c 41 6d 6f 75 6e |this.scr|ollAmoun|
|00002ce0| 74 29 3b 0d 0a 0d 0a 20 | 20 20 20 20 20 20 20 20 |t);.... | |
|00002cf0| 20 69 66 20 28 28 74 68 | 69 73 2e 64 69 72 73 69 | if ((th|is.dirsi|
|00002d00| 67 6e 20 3d 3d 20 31 20 | 26 26 20 74 68 69 73 2e |gn == 1 |&& this.|
|00002d10| 6e 65 77 50 6f 73 69 74 | 69 6f 6e 20 3e 20 74 68 |newPosit|ion > th|
|00002d20| 69 73 2e 73 74 6f 70 41 | 74 29 20 7c 7c 0d 0a 20 |is.stopA|t) ||.. |
|00002d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 74 68 | | (th|
|00002d40| 69 73 2e 64 69 72 73 69 | 67 6e 20 3d 3d 20 2d 31 |is.dirsi|gn == -1|
|00002d50| 20 26 26 20 74 68 69 73 | 2e 6e 65 77 50 6f 73 69 | && this|.newPosi|
|00002d60| 74 69 6f 6e 20 3c 20 74 | 68 69 73 2e 73 74 6f 70 |tion < t|his.stop|
|00002d70| 41 74 29 29 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |At)).. | |
|00002d80| 7b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 69 |{.. | i|
|00002d90| 66 20 28 74 68 69 73 2e | 62 65 68 61 76 69 6f 72 |f (this.|behavior|
|00002da0| 46 69 65 6c 64 20 3d 3d | 20 22 61 6c 74 65 72 6e |Field ==| "altern|
|00002db0| 61 74 65 22 29 0d 0a 20 | 20 20 20 20 20 20 20 20 |ate").. | |
|00002dc0| 20 20 20 7b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | {.. | |
|00002dd0| 20 20 20 20 2f 2f 20 6c | 65 74 73 20 73 74 61 72 | // l|ets star|
|00002de0| 74 20 61 66 72 65 73 68 | 0d 0a 20 20 20 20 20 20 |t afresh|.. |
|00002df0| 20 20 20 20 20 20 20 20 | 74 68 69 73 2e 73 74 61 | |this.sta|
|00002e00| 72 74 4e 65 77 44 69 72 | 65 63 74 69 6f 6e 20 3d |rtNewDir|ection =|
|00002e10| 20 74 72 75 65 3b 0d 0a | 0d 0a 20 20 20 20 20 20 | true;..|.. |
|00002e20| 20 20 20 20 20 20 20 20 | 2f 2f 20 73 77 61 70 20 | |// swap |
|00002e30| 64 69 72 65 63 74 69 6f | 6e 0d 0a 20 20 20 20 20 |directio|n.. |
|00002e40| 20 20 20 20 20 20 20 20 | 20 63 6f 6e 73 74 20 73 | | const s|
|00002e50| 77 61 70 20 3d 20 7b 6c | 65 66 74 3a 20 22 72 69 |wap = {l|eft: "ri|
|00002e60| 67 68 74 22 2c 20 64 6f | 77 6e 3a 20 22 75 70 22 |ght", do|wn: "up"|
|00002e70| 2c 20 75 70 3a 20 22 64 | 6f 77 6e 22 2c 20 72 69 |, up: "d|own", ri|
|00002e80| 67 68 74 3a 20 22 6c 65 | 66 74 22 7d 3b 0d 0a 20 |ght: "le|ft"};.. |
|00002e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 68 69 | | thi|
|00002ea0| 73 2e 64 69 72 65 63 74 | 69 6f 6e 46 69 65 6c 64 |s.direct|ionField|
|00002eb0| 20 3d 20 73 77 61 70 5b | 74 68 69 73 2e 64 69 72 | = swap[|this.dir|
|00002ec0| 65 63 74 69 6f 6e 46 69 | 65 6c 64 5d 3b 0d 0a 20 |ectionFi|eld];.. |
|00002ed0| 20 20 20 20 20 20 20 20 | 20 20 20 7d 0d 0a 20 20 | | }.. |
|00002ee0| 20 20 20 20 20 20 20 20 | 20 20 65 6c 73 65 0d 0a | | else..|
|00002ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 7b 0d 0a 20 | | {.. |
|00002f00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 68 69 | | thi|
|00002f10| 73 2e 6e 65 77 50 6f 73 | 69 74 69 6f 6e 20 3d 20 |s.newPos|ition = |
|00002f20| 74 68 69 73 2e 73 74 61 | 72 74 41 74 3b 0d 0a 20 |this.sta|rtAt;.. |
|00002f30| 20 20 20 20 20 20 20 20 | 20 20 20 7d 0d 0a 20 20 | | }.. |
|00002f40| 20 20 20 20 20 20 20 20 | 7d 0d 0a 0d 0a 20 20 20 | |}.... |
|00002f50| 20 20 20 20 20 20 20 69 | 66 20 28 21 74 68 69 73 | i|f (!this|
|00002f60| 2e 73 74 61 72 74 4e 65 | 77 44 69 72 65 63 74 69 |.startNe|wDirecti|
|00002f70| 6f 6e 29 20 7b 0d 0a 20 | 20 20 20 20 20 20 20 20 |on) {.. | |
|00002f80| 20 20 20 69 66 20 28 28 | 74 68 69 73 2e 64 69 72 | if ((|this.dir|
|00002f90| 65 63 74 69 6f 6e 46 69 | 65 6c 64 20 3d 3d 20 22 |ectionFi|eld == "|
|00002fa0| 75 70 22 29 20 7c 7c 20 | 28 74 68 69 73 2e 64 69 |up") || |(this.di|
|00002fb0| 72 65 63 74 69 6f 6e 46 | 69 65 6c 64 20 3d 3d 20 |rectionF|ield == |
|00002fc0| 22 64 6f 77 6e 22 29 29 | 0d 0a 20 20 20 20 20 20 |"down"))|.. |
|00002fd0| 20 20 20 20 20 20 20 20 | 74 68 69 73 2e 6f 75 74 | |this.out|
|00002fe0| 65 72 44 69 76 2e 73 63 | 72 6f 6c 6c 54 6f 70 20 |erDiv.sc|rollTop |
|00002ff0| 3d 20 74 68 69 73 2e 6e | 65 77 50 6f 73 69 74 69 |= this.n|ewPositi|
|00003000| 6f 6e 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |on;.. | |
|00003010| 20 65 6c 73 65 0d 0a 20 | 20 20 20 20 20 20 20 20 | else.. | |
|00003020| 20 20 20 20 20 74 68 69 | 73 2e 6f 75 74 65 72 44 | thi|s.outerD|
|00003030| 69 76 2e 73 63 72 6f 6c | 6c 4c 65 66 74 20 3d 20 |iv.scrol|lLeft = |
|00003040| 74 68 69 73 2e 6e 65 77 | 50 6f 73 69 74 69 6f 6e |this.new|Position|
|00003050| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 7d 0d 0a |;.. | }..|
|00003060| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 76 61 72 20 |.. | var |
|00003070| 6d 79 54 68 69 73 20 3d | 20 74 68 69 73 3b 0d 0a |myThis =| this;..|
|00003080| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 76 61 72 20 |.. | var |
|00003090| 6c 61 6d 62 64 61 20 3d | 20 66 75 6e 63 74 69 6f |lambda =| functio|
|000030a0| 6e 20 6d 79 54 69 6d 65 | 4f 75 74 46 75 6e 63 74 |n myTime|OutFunct|
|000030b0| 69 6f 6e 28 29 7b 6d 79 | 54 68 69 73 2e 73 74 61 |ion(){my|This.sta|
|000030c0| 72 74 28 29 3b 7d 0d 0a | 20 20 20 20 20 20 20 20 |rt();}..| |
|000030d0| 20 20 74 68 69 73 2e 72 | 75 6e 49 64 20 3d 20 77 | this.r|unId = w|
|000030e0| 69 6e 64 6f 77 2e 73 65 | 74 54 69 6d 65 6f 75 74 |indow.se|tTimeout|
|000030f0| 28 6c 61 6d 62 64 61 2c | 20 74 68 69 73 2e 73 63 |(lambda,| this.sc|
|00003100| 72 6f 6c 6c 44 65 6c 61 | 79 29 3b 0d 0a 20 20 20 |rollDela|y);.. |
|00003110| 20 20 20 20 20 5d 5d 3e | 0d 0a 20 20 20 20 20 20 | ]]>|.. |
|00003120| 20 20 3c 2f 62 6f 64 79 | 3e 0d 0a 20 20 20 20 20 | </body|>.. |
|00003130| 20 3c 2f 6d 65 74 68 6f | 64 3e 0d 0a 0d 0a 20 20 | </metho|d>.... |
|00003140| 20 20 20 20 3c 6d 65 74 | 68 6f 64 20 6e 61 6d 65 | <met|hod name|
|00003150| 3d 22 69 6e 69 74 22 3e | 0d 0a 20 20 20 20 20 20 |="init">|.. |
|00003160| 20 20 3c 62 6f 64 79 3e | 0d 0a 20 20 20 20 20 20 | <body>|.. |
|00003170| 20 20 3c 21 5b 43 44 41 | 54 41 5b 0d 0a 20 20 20 | <![CDA|TA[.. |
|00003180| 20 20 20 20 20 20 20 76 | 61 72 20 68 65 69 67 68 | v|ar heigh|
|00003190| 74 3b 0d 0a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |t;.... | |
|000031a0| 69 66 20 28 74 68 69 73 | 2e 68 61 73 41 74 74 72 |if (this|.hasAttr|
|000031b0| 69 62 75 74 65 28 27 68 | 65 69 67 68 74 27 29 29 |ibute('h|eight'))|
|000031c0| 20 7b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | {.. | |
|000031d0| 68 65 69 67 68 74 20 3d | 20 74 68 69 73 2e 67 65 |height =| this.ge|
|000031e0| 74 41 74 74 72 69 62 75 | 74 65 28 27 68 65 69 67 |tAttribu|te('heig|
|000031f0| 68 74 27 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |ht');.. | |
|00003200| 20 20 20 74 68 69 73 2e | 6f 75 74 65 72 44 69 76 | this.|outerDiv|
|00003210| 2e 73 74 79 6c 65 2e 68 | 65 69 67 68 74 20 3d 20 |.style.h|eight = |
|00003220| 68 65 69 67 68 74 20 2b | 20 22 70 78 22 3b 0d 0a |height +| "px";..|
|00003230| 20 20 20 20 20 20 20 20 | 20 20 7d 0d 0a 0d 0a 20 | | }.... |
|00003240| 20 20 20 20 20 20 20 20 | 20 74 68 69 73 2e 6f 75 | | this.ou|
|00003250| 74 65 72 44 69 76 2e 73 | 74 79 6c 65 2e 77 69 64 |terDiv.s|tyle.wid|
|00003260| 74 68 20 3d 20 74 68 69 | 73 2e 77 69 64 74 68 3b |th = thi|s.width;|
|00003270| 0d 0a 0d 0a 20 20 20 20 | 20 20 20 20 20 20 2f 2f |.... | //|
|00003280| 20 53 6f 6d 65 20 73 69 | 74 65 73 20 61 63 63 65 | Some si|tes acce|
|00003290| 73 73 20 74 68 65 20 65 | 6c 65 6d 65 6e 74 20 76 |ss the e|lement v|
|000032a0| 69 61 20 74 68 65 20 65 | 76 69 6c 20 49 45 20 77 |ia the e|vil IE w|
|000032b0| 61 79 20 6f 66 20 65 6c | 65 6d 65 6e 74 49 44 2e |ay of el|ementID.|
|000032c0| 66 6f 6f 28 29 0d 0a 20 | 20 20 20 20 20 20 20 20 |foo().. | |
|000032d0| 20 69 66 20 28 74 68 69 | 73 2e 68 61 73 41 74 74 | if (thi|s.hasAtt|
|000032e0| 72 69 62 75 74 65 28 27 | 69 64 27 29 29 0d 0a 20 |ribute('|id')).. |
|000032f0| 20 20 20 20 20 20 20 20 | 20 20 20 77 69 6e 64 6f | | windo|
|00003300| 77 5b 74 68 69 73 2e 67 | 65 74 41 74 74 72 69 62 |w[this.g|etAttrib|
|00003310| 75 74 65 28 27 69 64 27 | 29 5d 20 3d 20 74 68 69 |ute('id'|)] = thi|
|00003320| 73 3b 0d 0a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |s;.... | |
|00003330| 2f 2f 20 57 65 62 73 69 | 74 65 20 63 61 6e 20 64 |// Websi|te can d|
|00003340| 65 66 69 6e 65 20 61 20 | 62 61 63 6b 67 72 6f 75 |efine a |backgrou|
|00003350| 6e 64 20 63 6f 6c 6f 72 | 20 76 69 61 20 74 68 65 |nd color| via the|
|00003360| 20 62 67 63 6f 6c 6f 72 | 20 61 74 74 72 69 62 75 | bgcolor| attribu|
|00003370| 74 65 0d 0a 20 20 20 20 | 20 20 20 20 20 20 69 66 |te.. | if|
|00003380| 20 28 74 68 69 73 2e 68 | 61 73 41 74 74 72 69 62 | (this.h|asAttrib|
|00003390| 75 74 65 28 22 62 67 63 | 6f 6c 6f 72 22 29 29 0d |ute("bgc|olor")).|
|000033a0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 74 68 69 |. | thi|
|000033b0| 73 2e 6f 75 74 65 72 44 | 69 76 2e 73 74 79 6c 65 |s.outerD|iv.style|
|000033c0| 2e 62 61 63 6b 67 72 6f | 75 6e 64 43 6f 6c 6f 72 |.backgro|undColor|
|000033d0| 20 3d 20 74 68 69 73 2e | 67 65 74 41 74 74 72 69 | = this.|getAttri|
|000033e0| 62 75 74 65 28 22 62 67 | 63 6f 6c 6f 72 22 29 3b |bute("bg|color");|
|000033f0| 0d 0a 0d 0a 20 20 20 20 | 20 20 20 20 20 20 2f 2f |.... | //|
|00003400| 20 73 74 6f 72 65 20 74 | 68 65 20 6f 72 69 67 69 | store t|he origi|
|00003410| 6e 61 6c 20 68 65 69 67 | 68 74 20 62 65 66 6f 72 |nal heig|ht befor|
|00003420| 65 20 77 65 20 61 64 64 | 20 70 61 64 64 69 6e 67 |e we add| padding|
|00003430| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 74 68 69 73 |.. | this|
|00003440| 2e 6f 72 69 67 69 6e 61 | 6c 48 65 69 67 68 74 20 |.origina|lHeight |
|00003450| 3d 20 74 68 69 73 2e 69 | 6e 6e 65 72 44 69 76 2e |= this.i|nnerDiv.|
|00003460| 6f 66 66 73 65 74 48 65 | 69 67 68 74 3b 0d 0a 0d |offsetHe|ight;...|
|00003470| 0a 20 20 20 20 20 20 20 | 20 20 20 74 68 69 73 2e |. | this.|
|00003480| 5f 64 6f 4d 6f 76 65 28 | 66 61 6c 73 65 29 3b 0d |_doMove(|false);.|
|00003490| 0a 20 20 20 20 20 20 20 | 20 5d 5d 3e 0d 0a 20 20 |. | ]]>.. |
|000034a0| 20 20 20 20 20 20 3c 2f | 62 6f 64 79 3e 0d 0a 20 | </|body>.. |
|000034b0| 20 20 20 20 20 3c 2f 6d | 65 74 68 6f 64 3e 0d 0a | </m|ethod>..|
|000034c0| 0d 0a 20 20 20 20 20 20 | 3c 63 6f 6e 73 74 72 75 |.. |<constru|
|000034d0| 63 74 6f 72 3e 0d 0a 20 | 20 20 20 20 20 20 20 3c |ctor>.. | <|
|000034e0| 21 5b 43 44 41 54 41 5b | 0d 0a 20 20 20 20 20 20 |![CDATA[|.. |
|000034f0| 20 20 20 20 2f 2f 20 66 | 6f 72 20 70 65 72 66 6f | // f|or perfo|
|00003500| 72 6d 61 6e 63 65 2c 20 | 77 65 20 73 74 6f 72 65 |rmance, |we store|
|00003510| 20 74 68 65 20 6c 6f 77 | 65 72 63 61 73 65 64 20 | the low|ercased |
|00003520| 64 69 72 65 63 74 69 6f | 6e 2f 62 65 68 61 76 69 |directio|n/behavi|
|00003530| 6f 72 20 69 6e 20 61 20 | 66 69 65 6c 64 2e 0d 0a |or in a |field...|
|00003540| 20 20 20 20 20 20 20 20 | 20 20 2f 2f 20 64 65 66 | | // def|
|00003550| 61 75 6c 74 20 74 6f 20 | 22 6c 65 66 74 22 0d 0a |ault to |"left"..|
|00003560| 20 20 20 20 20 20 20 20 | 20 20 74 68 69 73 2e 64 | | this.d|
|00003570| 69 72 65 63 74 69 6f 6e | 46 69 65 6c 64 20 3d 20 |irection|Field = |
|00003580| 74 68 69 73 2e 68 61 73 | 41 74 74 72 69 62 75 74 |this.has|Attribut|
|00003590| 65 28 22 64 69 72 65 63 | 74 69 6f 6e 22 29 20 3f |e("direc|tion") ?|
|000035a0| 20 74 68 69 73 2e 67 65 | 74 41 74 74 72 69 62 75 | this.ge|tAttribu|
|000035b0| 74 65 28 22 64 69 72 65 | 63 74 69 6f 6e 22 29 2e |te("dire|ction").|
|000035c0| 74 6f 4c 6f 77 65 72 43 | 61 73 65 28 29 20 3a 20 |toLowerC|ase() : |
|000035d0| 74 68 69 73 2e 64 65 66 | 61 75 6c 74 44 69 72 65 |this.def|aultDire|
|000035e0| 63 74 69 6f 6e 3b 0d 0a | 20 20 20 20 20 20 20 20 |ction;..| |
|000035f0| 20 20 0d 0a 20 20 20 20 | 20 20 20 20 20 20 2f 2f | .. | //|
|00003600| 20 64 65 66 61 75 6c 74 | 20 74 6f 20 22 73 63 72 | default| to "scr|
|00003610| 6f 6c 6c 22 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |oll".. | |
|00003620| 74 68 69 73 2e 62 65 68 | 61 76 69 6f 72 46 69 65 |this.beh|aviorFie|
|00003630| 6c 64 20 3d 20 74 68 69 | 73 2e 68 61 73 41 74 74 |ld = thi|s.hasAtt|
|00003640| 72 69 62 75 74 65 28 22 | 62 65 68 61 76 69 6f 72 |ribute("|behavior|
|00003650| 22 29 20 3f 20 74 68 69 | 73 2e 67 65 74 41 74 74 |") ? thi|s.getAtt|
|00003660| 72 69 62 75 74 65 28 22 | 62 65 68 61 76 69 6f 72 |ribute("|behavior|
|00003670| 22 29 2e 74 6f 4c 6f 77 | 65 72 43 61 73 65 28 29 |").toLow|erCase()|
|00003680| 20 3a 20 74 68 69 73 2e | 64 65 66 61 75 6c 74 42 | : this.|defaultB|
|00003690| 65 68 61 76 69 6f 72 3b | 0d 0a 0d 0a 20 20 20 20 |ehavior;|.... |
|000036a0| 20 20 20 20 20 20 76 61 | 72 20 6d 79 54 68 69 73 | va|r myThis|
|000036b0| 20 3d 20 74 68 69 73 3b | 0d 0a 20 20 20 20 20 20 | = this;|.. |
|000036c0| 20 20 20 20 76 61 72 20 | 6c 61 6d 62 64 61 20 3d | var |lambda =|
|000036d0| 20 66 75 6e 63 74 69 6f | 6e 20 6d 79 53 63 6f 70 | functio|n myScop|
|000036e0| 65 46 75 6e 63 74 69 6f | 6e 28 29 20 7b 20 6d 79 |eFunctio|n() { my|
|000036f0| 54 68 69 73 2e 69 6e 69 | 74 28 29 3b 20 7d 0d 0a |This.ini|t(); }..|
|00003700| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 2f 2f 20 69 |.. | // i|
|00003710| 6e 69 74 20 6e 65 65 64 | 73 20 74 6f 20 62 65 20 |nit need|s to be |
|00003720| 72 75 6e 20 61 66 74 65 | 72 20 74 68 65 20 70 61 |run afte|r the pa|
|00003730| 67 65 20 68 61 73 20 6c | 6f 61 64 65 64 20 69 6e |ge has l|oaded in|
|00003740| 20 6f 72 64 65 72 20 74 | 6f 20 63 61 6c 63 75 6c | order t|o calcul|
|00003750| 61 74 65 0d 0a 20 20 20 | 20 20 20 20 20 20 20 2f |ate.. | /|
|00003760| 2f 20 74 68 65 20 63 6f | 72 72 65 63 74 20 68 65 |/ the co|rrect he|
|00003770| 69 67 68 74 2f 77 69 64 | 74 68 0d 0a 20 20 20 20 |ight/wid|th.. |
|00003780| 20 20 20 20 20 20 77 69 | 6e 64 6f 77 2e 61 64 64 | wi|ndow.add|
|00003790| 45 76 65 6e 74 4c 69 73 | 74 65 6e 65 72 28 22 6c |EventLis|tener("l|
|000037a0| 6f 61 64 22 2c 20 6c 61 | 6d 62 64 61 2c 20 66 61 |oad", la|mbda, fa|
|000037b0| 6c 73 65 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 5d |lse);.. | ]|
|000037c0| 5d 3e 0d 0a 20 20 20 20 | 20 20 3c 2f 63 6f 6e 73 |]>.. | </cons|
|000037d0| 74 72 75 63 74 6f 72 3e | 0d 0a 20 20 20 20 3c 2f |tructor>|.. </|
|000037e0| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 3e 0d |implemen|tation>.|
|000037f0| 0a 20 20 20 20 0d 0a 20 | 20 20 20 3c 68 61 6e 64 |. .. | <hand|
|00003800| 6c 65 72 73 3e 0d 0a 20 | 20 20 20 20 20 3c 68 61 |lers>.. | <ha|
|00003810| 6e 64 6c 65 72 20 65 76 | 65 6e 74 3d 22 44 4f 4d |ndler ev|ent="DOM|
|00003820| 41 74 74 72 4d 6f 64 69 | 66 69 65 64 22 20 70 68 |AttrModi|fied" ph|
|00003830| 61 73 65 3d 22 74 61 72 | 67 65 74 22 3e 0d 0a 20 |ase="tar|get">.. |
|00003840| 20 20 20 20 20 20 20 3c | 21 5b 43 44 41 54 41 5b | <|![CDATA[|
|00003850| 0d 0a 20 20 20 20 20 20 | 20 20 76 61 72 20 61 74 |.. | var at|
|00003860| 74 72 4e 61 6d 65 20 3d | 20 65 76 65 6e 74 2e 61 |trName =| event.a|
|00003870| 74 74 72 4e 61 6d 65 2e | 74 6f 4c 6f 77 65 72 43 |ttrName.|toLowerC|
|00003880| 61 73 65 28 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |ase();..| |
|00003890| 76 61 72 20 6f 6c 64 56 | 61 6c 75 65 20 3d 20 65 |var oldV|alue = e|
|000038a0| 76 65 6e 74 2e 70 72 65 | 76 56 61 6c 75 65 2e 74 |vent.pre|vValue.t|
|000038b0| 6f 4c 6f 77 65 72 43 61 | 73 65 28 29 3b 0d 0a 20 |oLowerCa|se();.. |
|000038c0| 20 20 20 20 20 20 20 76 | 61 72 20 6e 65 77 56 61 | v|ar newVa|
|000038d0| 6c 75 65 20 3d 20 65 76 | 65 6e 74 2e 6e 65 77 56 |lue = ev|ent.newV|
|000038e0| 61 6c 75 65 2e 74 6f 4c | 6f 77 65 72 43 61 73 65 |alue.toL|owerCase|
|000038f0| 28 29 3b 0d 0a 0d 0a 20 | 20 20 20 20 20 20 20 2f |();.... | /|
|00003900| 2f 20 6f 6e 6c 79 20 69 | 66 20 61 20 6e 65 77 20 |/ only i|f a new |
|00003910| 76 61 6c 75 65 20 69 73 | 20 73 70 65 63 69 66 69 |value is| specifi|
|00003920| 65 64 0d 0a 20 20 20 20 | 20 20 20 20 69 66 20 28 |ed.. | if (|
|00003930| 6f 6c 64 56 61 6c 75 65 | 20 21 3d 20 6e 65 77 56 |oldValue| != newV|
|00003940| 61 6c 75 65 20 26 26 20 | 6e 65 77 56 61 6c 75 65 |alue && |newValue|
|00003950| 29 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 69 |) {.. | i|
|00003960| 66 20 28 61 74 74 72 4e | 61 6d 65 20 3d 3d 20 22 |f (attrN|ame == "|
|00003970| 64 69 72 65 63 74 69 6f | 6e 22 29 20 7b 0d 0a 20 |directio|n") {.. |
|00003980| 20 20 20 20 20 20 20 20 | 20 20 20 74 68 69 73 2e | | this.|
|00003990| 73 74 61 72 74 4e 65 77 | 44 69 72 65 63 74 69 6f |startNew|Directio|
|000039a0| 6e 20 3d 20 74 72 75 65 | 3b 0d 0a 20 20 20 20 20 |n = true|;.. |
|000039b0| 20 20 20 20 20 20 20 74 | 68 69 73 2e 64 69 72 65 | t|his.dire|
|000039c0| 63 74 69 6f 6e 46 69 65 | 6c 64 20 3d 20 6e 65 77 |ctionFie|ld = new|
|000039d0| 56 61 6c 75 65 3b 0d 0a | 20 20 20 20 20 20 20 20 |Value;..| |
|000039e0| 20 20 20 20 74 68 69 73 | 2e 5f 64 6f 4d 6f 76 65 | this|._doMove|
|000039f0| 28 74 72 75 65 29 3b 0d | 0a 20 20 20 20 20 20 20 |(true);.|. |
|00003a00| 20 20 20 7d 20 65 6c 73 | 65 20 69 66 20 28 61 74 | } els|e if (at|
|00003a10| 74 72 4e 61 6d 65 20 3d | 3d 20 22 62 65 68 61 76 |trName =|= "behav|
|00003a20| 69 6f 72 22 29 20 7b 0d | 0a 20 20 20 20 20 20 20 |ior") {.|. |
|00003a30| 20 20 20 20 20 74 68 69 | 73 2e 62 65 68 61 76 69 | thi|s.behavi|
|00003a40| 6f 72 46 69 65 6c 64 20 | 3d 20 6e 65 77 56 61 6c |orField |= newVal|
|00003a50| 75 65 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 7d |ue;.. | }|
|00003a60| 0d 0a 20 20 20 20 20 20 | 20 20 7d 0d 0a 20 20 20 |.. | }.. |
|00003a70| 20 20 20 20 20 5d 5d 3e | 0d 0a 20 20 20 20 20 20 | ]]>|.. |
|00003a80| 3c 2f 68 61 6e 64 6c 65 | 72 3e 0d 0a 20 20 20 20 |</handle|r>.. |
|00003a90| 3c 2f 68 61 6e 64 6c 65 | 72 73 3e 0d 0a 0d 0a 20 |</handle|rs>.... |
|00003aa0| 20 3c 2f 62 69 6e 64 69 | 6e 67 3e 0d 0a 0d 0a 20 | </bindi|ng>.... |
|00003ab0| 20 3c 62 69 6e 64 69 6e | 67 20 69 64 3d 22 6d 61 | <bindin|g id="ma|
|00003ac0| 72 71 75 65 65 2d 68 6f | 72 69 7a 6f 6e 74 61 6c |rquee-ho|rizontal|
|00003ad0| 22 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 65 78 |".. | ex|
|00003ae0| 74 65 6e 64 73 3d 22 63 | 68 72 6f 6d 65 3a 2f 2f |tends="c|hrome://|
|00003af0| 78 62 6c 2d 6d 61 72 71 | 75 65 65 2f 63 6f 6e 74 |xbl-marq|uee/cont|
|00003b00| 65 6e 74 2f 78 62 6c 2d | 6d 61 72 71 75 65 65 2e |ent/xbl-|marquee.|
|00003b10| 78 6d 6c 23 6d 61 72 71 | 75 65 65 22 0d 0a 20 20 |xml#marq|uee".. |
|00003b20| 20 20 20 20 20 20 20 20 | 20 69 6e 68 65 72 69 74 | | inherit|
|00003b30| 73 74 79 6c 65 3d 22 66 | 61 6c 73 65 22 3e 0d 0a |style="f|alse">..|
|00003b40| 0d 0a 20 20 20 20 3c 63 | 6f 6e 74 65 6e 74 3e 0d |.. <c|ontent>.|
|00003b50| 0a 20 20 20 20 20 20 3c | 68 74 6d 6c 3a 64 69 76 |. <|html:div|
|00003b60| 20 78 62 6c 3a 69 6e 68 | 65 72 69 74 73 3d 22 22 | xbl:inh|erits=""|
|00003b70| 20 73 74 79 6c 65 3d 22 | 6f 76 65 72 66 6c 6f 77 | style="|overflow|
|00003b80| 3a 20 2d 6d 6f 7a 2d 73 | 63 72 6f 6c 6c 62 61 72 |: -moz-s|crollbar|
|00003b90| 73 2d 6e 6f 6e 65 22 3e | 0d 0a 20 20 20 20 20 20 |s-none">|.. |
|00003ba0| 20 20 3c 78 75 6c 3a 68 | 62 6f 78 20 73 74 79 6c | <xul:h|box styl|
|00003bb0| 65 3d 22 6d 61 72 67 69 | 6e 3a 20 30 20 31 30 30 |e="margi|n: 0 100|
|00003bc0| 25 3b 22 3e 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |%;">.. | |
|00003bd0| 3c 68 74 6d 6c 3a 64 69 | 76 20 61 6e 6f 6e 69 64 |<html:di|v anonid|
|00003be0| 3d 22 69 6e 6e 65 72 44 | 69 76 22 3e 0d 0a 20 20 |="innerD|iv">.. |
|00003bf0| 20 20 20 20 20 20 20 20 | 20 20 3c 63 68 69 6c 64 | | <child|
|00003c00| 72 65 6e 2f 3e 0d 0a 20 | 20 20 20 20 20 20 20 20 |ren/>.. | |
|00003c10| 20 3c 2f 68 74 6d 6c 3a | 64 69 76 3e 0d 0a 20 20 | </html:|div>.. |
|00003c20| 20 20 20 20 20 20 3c 2f | 78 75 6c 3a 68 62 6f 78 | </|xul:hbox|
|00003c30| 3e 0d 0a 20 20 20 20 20 | 20 3c 2f 68 74 6d 6c 3a |>.. | </html:|
|00003c40| 64 69 76 3e 0d 0a 20 20 | 20 20 3c 2f 63 6f 6e 74 |div>.. | </cont|
|00003c50| 65 6e 74 3e 0d 0a 0d 0a | 20 20 3c 2f 62 69 6e 64 |ent>....| </bind|
|00003c60| 69 6e 67 3e 0d 0a 0d 0a | 20 20 3c 62 69 6e 64 69 |ing>....| <bindi|
|00003c70| 6e 67 20 69 64 3d 22 6d | 61 72 71 75 65 65 2d 76 |ng id="m|arquee-v|
|00003c80| 65 72 74 69 63 61 6c 22 | 0d 0a 20 20 20 20 20 20 |ertical"|.. |
|00003c90| 20 20 20 20 20 65 78 74 | 65 6e 64 73 3d 22 63 68 | ext|ends="ch|
|00003ca0| 72 6f 6d 65 3a 2f 2f 78 | 62 6c 2d 6d 61 72 71 75 |rome://x|bl-marqu|
|00003cb0| 65 65 2f 63 6f 6e 74 65 | 6e 74 2f 78 62 6c 2d 6d |ee/conte|nt/xbl-m|
|00003cc0| 61 72 71 75 65 65 2e 78 | 6d 6c 23 6d 61 72 71 75 |arquee.x|ml#marqu|
|00003cd0| 65 65 22 3e 0d 0a 0d 0a | 20 20 20 20 3c 63 6f 6e |ee">....| <con|
|00003ce0| 74 65 6e 74 3e 0d 0a 20 | 20 20 20 20 20 3c 68 74 |tent>.. | <ht|
|00003cf0| 6d 6c 3a 64 69 76 20 78 | 62 6c 3a 69 6e 68 65 72 |ml:div x|bl:inher|
|00003d00| 69 74 73 3d 22 22 20 73 | 74 79 6c 65 3d 22 6f 76 |its="" s|tyle="ov|
|00003d10| 65 72 66 6c 6f 77 3a 20 | 2d 6d 6f 7a 2d 73 63 72 |erflow: |-moz-scr|
|00003d20| 6f 6c 6c 62 61 72 73 2d | 6e 6f 6e 65 22 3e 0d 0a |ollbars-|none">..|
|00003d30| 20 20 20 20 20 20 20 20 | 3c 68 74 6d 6c 3a 64 69 | |<html:di|
|00003d40| 76 20 61 6e 6f 6e 69 64 | 3d 22 69 6e 6e 65 72 44 |v anonid|="innerD|
|00003d50| 69 76 22 3e 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |iv">.. | |
|00003d60| 3c 63 68 69 6c 64 72 65 | 6e 2f 3e 0d 0a 20 20 20 |<childre|n/>.. |
|00003d70| 20 20 20 20 20 3c 2f 68 | 74 6d 6c 3a 64 69 76 3e | </h|tml:div>|
|00003d80| 0d 0a 20 20 20 20 20 20 | 3c 2f 68 74 6d 6c 3a 64 |.. |</html:d|
|00003d90| 69 76 3e 0d 0a 20 20 20 | 20 3c 2f 63 6f 6e 74 65 |iv>.. | </conte|
|00003da0| 6e 74 3e 0d 0a 0d 0a 20 | 20 3c 2f 62 69 6e 64 69 |nt>.... | </bindi|
|00003db0| 6e 67 3e 0d 0a 0d 0a 3c | 2f 62 69 6e 64 69 6e 67 |ng>....<|/binding|
|00003dc0| 73 3e 0d 0a 50 4b 03 04 | 0a 00 00 00 00 00 c0 26 |s>..PK..|.......&|
|00003dd0| 59 30 56 3d 33 27 d1 11 | 00 00 d1 11 00 00 25 00 |Y0V=3'..|......%.|
|00003de0| 15 00 63 6f 6e 74 65 6e | 74 2f 63 6f 6f 6b 69 65 |..conten|t/cookie|
|00003df0| 2f 63 6f 6f 6b 69 65 54 | 61 73 6b 73 4f 76 65 72 |/cookieT|asksOver|
|00003e00| 6c 61 79 2e 78 75 6c 55 | 54 09 00 03 e8 9a 3c 40 |lay.xulU|T.....<@|
|00003e10| f8 1b d3 42 55 78 04 00 | eb 03 01 02 3c 3f 78 6d |...BUx..|....<?xm|
|00003e20| 6c 20 76 65 72 73 69 6f | 6e 3d 22 31 2e 30 22 3f |l versio|n="1.0"?|
|00003e30| 3e 0d 0a 0d 0a 3c 21 2d | 2d 0d 0a 20 20 20 54 68 |>....<!-|-.. Th|
|00003e40| 65 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 74 68 |e conten|ts of th|
|00003e50| 69 73 20 66 69 6c 65 20 | 61 72 65 20 73 75 62 6a |is file |are subj|
|00003e60| 65 63 74 20 74 6f 20 74 | 68 65 20 4e 65 74 73 63 |ect to t|he Netsc|
|00003e70| 61 70 65 20 50 75 62 6c | 69 63 0d 0a 20 20 20 4c |ape Publ|ic.. L|
|00003e80| 69 63 65 6e 73 65 20 56 | 65 72 73 69 6f 6e 20 31 |icense V|ersion 1|
|00003e90| 2e 31 20 28 74 68 65 20 | 22 4c 69 63 65 6e 73 65 |.1 (the |"License|
|00003ea0| 22 29 3b 20 79 6f 75 20 | 6d 61 79 20 6e 6f 74 20 |"); you |may not |
|00003eb0| 75 73 65 20 74 68 69 73 | 20 66 69 6c 65 0d 0a 20 |use this| file.. |
|00003ec0| 20 20 65 78 63 65 70 74 | 20 69 6e 20 63 6f 6d 70 | except| in comp|
|00003ed0| 6c 69 61 6e 63 65 20 77 | 69 74 68 20 74 68 65 20 |liance w|ith the |
|00003ee0| 4c 69 63 65 6e 73 65 2e | 20 59 6f 75 20 6d 61 79 |License.| You may|
|00003ef0| 20 6f 62 74 61 69 6e 20 | 61 20 63 6f 70 79 20 6f | obtain |a copy o|
|00003f00| 66 0d 0a 20 20 20 74 68 | 65 20 4c 69 63 65 6e 73 |f.. th|e Licens|
|00003f10| 65 20 61 74 20 68 74 74 | 70 3a 2f 2f 77 77 77 2e |e at htt|p://www.|
|00003f20| 6d 6f 7a 69 6c 6c 61 2e | 6f 72 67 2f 4e 50 4c 2f |mozilla.|org/NPL/|
|00003f30| 0d 0a 20 20 20 20 0d 0a | 20 20 20 53 6f 66 74 77 |.. ..| Softw|
|00003f40| 61 72 65 20 64 69 73 74 | 72 69 62 75 74 65 64 20 |are dist|ributed |
|00003f50| 75 6e 64 65 72 20 74 68 | 65 20 4c 69 63 65 6e 73 |under th|e Licens|
|00003f60| 65 20 69 73 20 64 69 73 | 74 72 69 62 75 74 65 64 |e is dis|tributed|
|00003f70| 20 6f 6e 20 61 6e 20 22 | 41 53 0d 0a 20 20 20 49 | on an "|AS.. I|
|00003f80| 53 22 20 62 61 73 69 73 | 2c 20 57 49 54 48 4f 55 |S" basis|, WITHOU|
|00003f90| 54 20 57 41 52 52 41 4e | 54 59 20 4f 46 20 41 4e |T WARRAN|TY OF AN|
|00003fa0| 59 20 4b 49 4e 44 2c 20 | 65 69 74 68 65 72 20 65 |Y KIND, |either e|
|00003fb0| 78 70 72 65 73 73 20 6f | 72 0d 0a 20 20 20 69 6d |xpress o|r.. im|
|00003fc0| 70 6c 69 65 64 2e 20 53 | 65 65 20 74 68 65 20 4c |plied. S|ee the L|
|00003fd0| 69 63 65 6e 73 65 20 66 | 6f 72 20 74 68 65 20 73 |icense f|or the s|
|00003fe0| 70 65 63 69 66 69 63 20 | 6c 61 6e 67 75 61 67 65 |pecific |language|
|00003ff0| 20 67 6f 76 65 72 6e 69 | 6e 67 0d 0a 20 20 20 72 | governi|ng.. r|
|00004000| 69 67 68 74 73 20 61 6e | 64 20 6c 69 6d 69 74 61 |ights an|d limita|
|00004010| 74 69 6f 6e 73 20 75 6e | 64 65 72 20 74 68 65 20 |tions un|der the |
|00004020| 4c 69 63 65 6e 73 65 2e | 0d 0a 20 20 20 20 0d 0a |License.|.. ..|
|00004030| 20 20 20 54 68 65 20 4f | 72 69 67 69 6e 61 6c 20 | The O|riginal |
|00004040| 43 6f 64 65 20 69 73 20 | 4d 6f 7a 69 6c 6c 61 20 |Code is |Mozilla |
|00004050| 43 6f 6d 6d 75 6e 69 63 | 61 74 6f 72 20 63 6c 69 |Communic|ator cli|
|00004060| 65 6e 74 20 63 6f 64 65 | 2c 20 72 65 6c 65 61 73 |ent code|, releas|
|00004070| 65 64 0d 0a 20 20 20 4d | 61 72 63 68 20 33 31 2c |ed.. M|arch 31,|
|00004080| 20 31 39 39 38 2e 0d 0a | 20 20 20 0d 0a 20 20 20 | 1998...| .. |
|00004090| 54 68 65 20 49 6e 69 74 | 69 61 6c 20 44 65 76 65 |The Init|ial Deve|
|000040a0| 6c 6f 70 65 72 20 6f 66 | 20 74 68 65 20 4f 72 69 |loper of| the Ori|
|000040b0| 67 69 6e 61 6c 20 43 6f | 64 65 20 69 73 20 4e 65 |ginal Co|de is Ne|
|000040c0| 74 73 63 61 70 65 0d 0a | 20 20 20 43 6f 6d 6d 75 |tscape..| Commu|
|000040d0| 6e 69 63 61 74 69 6f 6e | 73 20 43 6f 72 70 6f 72 |nication|s Corpor|
|000040e0| 61 74 69 6f 6e 2e 20 50 | 6f 72 74 69 6f 6e 73 20 |ation. P|ortions |
|000040f0| 63 72 65 61 74 65 64 20 | 62 79 20 4e 65 74 73 63 |created |by Netsc|
|00004100| 61 70 65 20 61 72 65 0d | 0a 20 20 20 43 6f 70 79 |ape are.|. Copy|
|00004110| 72 69 67 68 74 20 28 43 | 29 20 31 39 39 38 2d 31 |right (C|) 1998-1|
|00004120| 39 39 39 20 4e 65 74 73 | 63 61 70 65 20 43 6f 6d |999 Nets|cape Com|
|00004130| 6d 75 6e 69 63 61 74 69 | 6f 6e 73 20 43 6f 72 70 |municati|ons Corp|
|00004140| 6f 72 61 74 69 6f 6e 2e | 20 41 6c 6c 0d 0a 20 20 |oration.| All.. |
|00004150| 20 52 69 67 68 74 73 20 | 52 65 73 65 72 76 65 64 | Rights |Reserved|
|00004160| 2e 0d 0a 20 20 20 0d 0a | 20 20 20 43 6f 6e 74 72 |... ..| Contr|
|00004170| 69 62 75 74 6f 72 28 73 | 29 3a 20 0d 0a 20 20 2d |ibutor(s|): .. -|
|00004180| 2d 3e 0d 0a 0d 0a 3c 21 | 44 4f 43 54 59 50 45 20 |->....<!|DOCTYPE |
|00004190| 6f 76 65 72 6c 61 79 20 | 53 59 53 54 45 4d 20 22 |overlay |SYSTEM "|
|000041a0| 63 68 72 6f 6d 65 3a 2f | 2f 63 6f 6f 6b 69 65 2f |chrome:/|/cookie/|
|000041b0| 6c 6f 63 61 6c 65 2f 63 | 6f 6f 6b 69 65 54 61 73 |locale/c|ookieTas|
|000041c0| 6b 73 4f 76 65 72 6c 61 | 79 2e 64 74 64 22 3e 0d |ksOverla|y.dtd">.|
|000041d0| 0a 0d 0a 3c 6f 76 65 72 | 6c 61 79 20 69 64 3d 22 |...<over|lay id="|
|000041e0| 63 6f 6f 6b 69 65 54 61 | 73 6b 73 4f 76 65 72 6c |cookieTa|sksOverl|
|000041f0| 61 79 22 0d 0a 20 20 20 | 20 20 20 20 20 20 78 6d |ay".. | xm|
|00004200| 6c 6e 73 3d 22 68 74 74 | 70 3a 2f 2f 77 77 77 2e |lns="htt|p://www.|
|00004210| 6d 6f 7a 69 6c 6c 61 2e | 6f 72 67 2f 6b 65 79 6d |mozilla.|org/keym|
|00004220| 61 73 74 65 72 2f 67 61 | 74 65 6b 65 65 70 65 72 |aster/ga|tekeeper|
|00004230| 2f 74 68 65 72 65 2e 69 | 73 2e 6f 6e 6c 79 2e 78 |/there.i|s.only.x|
|00004240| 75 6c 22 3e 0d 0a 0d 0a | 20 20 3c 73 63 72 69 70 |ul">....| <scrip|
|00004250| 74 20 74 79 70 65 3d 22 | 61 70 70 6c 69 63 61 74 |t type="|applicat|
|00004260| 69 6f 6e 2f 78 2d 6a 61 | 76 61 73 63 72 69 70 74 |ion/x-ja|vascript|
|00004270| 22 20 73 72 63 3d 22 63 | 68 72 6f 6d 65 3a 2f 2f |" src="c|hrome://|
|00004280| 63 6f 6f 6b 69 65 2f 63 | 6f 6e 74 65 6e 74 2f 63 |cookie/c|ontent/c|
|00004290| 6f 6f 6b 69 65 4f 76 65 | 72 6c 61 79 2e 6a 73 22 |ookieOve|rlay.js"|
|000042a0| 2f 3e 0d 0a 0d 0a 20 20 | 3c 73 63 72 69 70 74 20 |/>.... |<script |
|000042b0| 74 79 70 65 3d 22 61 70 | 70 6c 69 63 61 74 69 6f |type="ap|plicatio|
|000042c0| 6e 2f 78 2d 6a 61 76 61 | 73 63 72 69 70 74 22 3e |n/x-java|script">|
|000042d0| 0d 0a 20 20 3c 21 5b 43 | 44 41 54 41 5b 0d 0a 0d |.. <![C|DATA[...|
|000042e0| 0a 20 20 20 20 2f 2a 2a | 2a 2a 2a 2a 2a 20 54 48 |. /**|***** TH|
|000042f0| 45 20 46 4f 4c 4c 4f 57 | 49 4e 47 20 49 53 20 46 |E FOLLOW|ING IS F|
|00004300| 4f 52 20 54 48 45 20 53 | 54 41 54 55 53 42 41 52 |OR THE S|TATUSBAR|
|00004310| 20 4f 56 45 52 4c 41 59 | 20 2a 2a 2a 2a 2a 2a 2a | OVERLAY| *******|
|00004320| 2f 0d 0a 0d 0a 20 20 20 | 20 76 61 72 20 67 42 75 |/.... | var gBu|
|00004330| 74 74 6f 6e 50 72 65 73 | 73 65 64 3b 0d 0a 0d 0a |ttonPres|sed;....|
|00004340| 20 20 20 20 76 61 72 20 | 63 6f 6f 6b 69 65 49 63 | var |cookieIc|
|00004350| 6f 6e 4f 62 73 65 72 76 | 65 72 20 3d 20 7b 0d 0a |onObserv|er = {..|
|00004360| 20 20 20 20 20 20 6f 62 | 73 65 72 76 65 3a 20 66 | ob|serve: f|
|00004370| 75 6e 63 74 69 6f 6e 28 | 73 75 62 6a 65 63 74 2c |unction(|subject,|
|00004380| 20 74 6f 70 69 63 2c 20 | 73 74 61 74 65 29 20 7b | topic, |state) {|
|00004390| 0d 0a 20 20 20 20 20 20 | 20 20 69 66 20 28 74 6f |.. | if (to|
|000043a0| 70 69 63 20 21 3d 20 22 | 63 6f 6f 6b 69 65 49 63 |pic != "|cookieIc|
|000043b0| 6f 6e 22 20 7c 7c 20 21 | 64 6f 63 75 6d 65 6e 74 |on" || !|document|
|000043c0| 29 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 72 |) {.. | r|
|000043d0| 65 74 75 72 6e 3b 0d 0a | 20 20 20 20 20 20 20 20 |eturn;..| |
|000043e0| 7d 0d 0a 20 20 20 20 20 | 20 20 20 76 61 72 20 63 |}.. | var c|
|000043f0| 6f 6f 6b 69 65 49 63 6f | 6e 20 3d 20 64 6f 63 75 |ookieIco|n = docu|
|00004400| 6d 65 6e 74 2e 67 65 74 | 45 6c 65 6d 65 6e 74 42 |ment.get|ElementB|
|00004410| 79 49 64 28 22 70 72 69 | 76 61 63 79 2d 62 75 74 |yId("pri|vacy-but|
|00004420| 74 6f 6e 22 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |ton");..| |
|00004430| 69 66 20 28 63 6f 6f 6b | 69 65 49 63 6f 6e 29 20 |if (cook|ieIcon) |
|00004440| 7b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 69 66 20 |{.. | if |
|00004450| 28 73 74 61 74 65 20 3d | 3d 20 22 6f 6e 22 29 20 |(state =|= "on") |
|00004460| 7b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 63 |{.. | c|
|00004470| 6f 6f 6b 69 65 49 63 6f | 6e 2e 72 65 6d 6f 76 65 |ookieIco|n.remove|
|00004480| 41 74 74 72 69 62 75 74 | 65 28 22 68 69 64 64 65 |Attribut|e("hidde|
|00004490| 6e 22 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |n");.. | |
|000044a0| 7d 20 65 6c 73 65 20 69 | 66 20 28 73 74 61 74 65 |} else i|f (state|
|000044b0| 20 3d 3d 20 22 6f 66 66 | 22 29 20 20 7b 0d 0a 20 | == "off|") {.. |
|000044c0| 20 20 20 20 20 20 20 20 | 20 20 20 63 6f 6f 6b 69 | | cooki|
|000044d0| 65 49 63 6f 6e 2e 73 65 | 74 41 74 74 72 69 62 75 |eIcon.se|tAttribu|
|000044e0| 74 65 28 22 68 69 64 64 | 65 6e 22 2c 20 22 74 72 |te("hidd|en", "tr|
|000044f0| 75 65 22 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |ue");.. | |
|00004500| 20 7d 0d 0a 20 20 20 20 | 20 20 20 20 7d 0d 0a 20 | }.. | }.. |
|00004510| 20 20 20 20 20 7d 0d 0a | 20 20 20 20 7d 0d 0a 0d | }..| }...|
|00004520| 0a 20 20 20 20 66 75 6e | 63 74 69 6f 6e 20 76 69 |. fun|ction vi|
|00004530| 65 77 50 33 50 44 69 61 | 6c 6f 67 28 29 20 7b 0d |ewP3PDia|log() {.|
|00004540| 0a 20 20 20 20 20 20 76 | 61 72 20 6f 62 73 65 72 |. v|ar obser|
|00004550| 76 65 72 53 65 72 76 69 | 63 65 20 3d 20 43 6f 6d |verServi|ce = Com|
|00004560| 70 6f 6e 65 6e 74 73 2e | 63 6c 61 73 73 65 73 5b |ponents.|classes[|
|00004570| 22 40 6d 6f 7a 69 6c 6c | 61 2e 6f 72 67 2f 6f 62 |"@mozill|a.org/ob|
|00004580| 73 65 72 76 65 72 2d 73 | 65 72 76 69 63 65 3b 31 |server-s|ervice;1|
|00004590| 22 5d 2e 67 65 74 53 65 | 72 76 69 63 65 28 43 6f |"].getSe|rvice(Co|
|000045a0| 6d 70 6f 6e 65 6e 74 73 | 2e 69 6e 74 65 72 66 61 |mponents|.interfa|
|000045b0| 63 65 73 2e 6e 73 49 4f | 62 73 65 72 76 65 72 53 |ces.nsIO|bserverS|
|000045c0| 65 72 76 69 63 65 29 3b | 0d 0a 20 20 20 20 20 20 |ervice);|.. |
|000045d0| 6f 62 73 65 72 76 65 72 | 53 65 72 76 69 63 65 2e |observer|Service.|
|000045e0| 6e 6f 74 69 66 79 4f 62 | 73 65 72 76 65 72 73 28 |notifyOb|servers(|
|000045f0| 6e 75 6c 6c 2c 20 22 63 | 6f 6f 6b 69 65 49 63 6f |null, "c|ookieIco|
|00004600| 6e 22 2c 20 22 6f 66 66 | 22 29 3b 0d 0a 0d 0a 20 |n", "off|");.... |
|00004610| 20 20 20 20 20 77 69 6e | 64 6f 77 2e 6f 70 65 6e | win|dow.open|
|00004620| 44 69 61 6c 6f 67 0d 0a | 20 20 20 20 20 20 20 20 |Dialog..| |
|00004630| 28 22 63 68 72 6f 6d 65 | 3a 2f 2f 63 6f 6f 6b 69 |("chrome|://cooki|
|00004640| 65 2f 63 6f 6e 74 65 6e | 74 2f 70 33 70 44 69 61 |e/conten|t/p3pDia|
|00004650| 6c 6f 67 2e 78 75 6c 22 | 2c 22 5f 62 6c 61 6e 6b |log.xul"|,"_blank|
|00004660| 22 2c 22 6d 6f 64 61 6c | 3d 79 65 73 2c 63 68 72 |","modal|=yes,chr|
|00004670| 6f 6d 65 2c 72 65 73 69 | 7a 61 62 6c 65 3d 6e 6f |ome,resi|zable=no|
|00004680| 22 2c 20 74 68 69 73 29 | 3b 0d 0a 20 20 20 20 20 |", this)|;.. |
|00004690| 20 69 66 20 28 67 42 75 | 74 74 6f 6e 50 72 65 73 | if (gBu|ttonPres|
|000046a0| 73 65 64 20 3d 3d 20 22 | 63 6f 6f 6b 69 65 22 29 |sed == "|cookie")|
|000046b0| 20 7b 0d 0a 20 20 20 20 | 20 20 20 20 76 69 65 77 | {.. | view|
|000046c0| 43 6f 6f 6b 69 65 73 46 | 72 6f 6d 49 63 6f 6e 28 |CookiesF|romIcon(|
|000046d0| 29 3b 0d 0a 20 20 20 20 | 20 20 7d 20 65 6c 73 65 |);.. | } else|
|000046e0| 20 69 66 20 28 67 42 75 | 74 74 6f 6e 50 72 65 73 | if (gBu|ttonPres|
|000046f0| 73 65 64 20 3d 3d 20 22 | 70 33 70 22 29 20 7b 0d |sed == "|p3p") {.|
|00004700| 0a 20 20 20 20 20 20 20 | 20 76 69 65 77 50 33 50 |. | viewP3P|
|00004710| 28 29 3b 0d 0a 20 20 20 | 20 20 20 7d 0d 0a 20 20 |();.. | }.. |
|00004720| 20 20 7d 0d 0a 0d 0a 20 | 20 20 20 66 75 6e 63 74 | }.... | funct|
|00004730| 69 6f 6e 20 43 6f 6f 6b | 69 65 54 61 73 6b 73 4f |ion Cook|ieTasksO|
|00004740| 6e 4c 6f 61 64 28 65 76 | 65 6e 74 29 20 7b 0d 0a |nLoad(ev|ent) {..|
|00004750| 20 20 20 20 20 20 61 64 | 64 45 76 65 6e 74 4c 69 | ad|dEventLi|
|00004760| 73 74 65 6e 65 72 28 22 | 75 6e 6c 6f 61 64 22 2c |stener("|unload",|
|00004770| 20 43 6f 6f 6b 69 65 54 | 61 73 6b 73 4f 6e 55 6e | CookieT|asksOnUn|
|00004780| 6c 6f 61 64 2c 20 66 61 | 6c 73 65 29 3b 0d 0a 0d |load, fa|lse);...|
|00004790| 0a 20 20 20 20 20 20 2f | 2f 20 64 65 74 65 72 6d |. /|/ determ|
|000047a0| 69 6e 65 20 69 66 20 70 | 33 70 20 70 72 65 66 20 |ine if p|3p pref |
|000047b0| 69 73 20 73 65 74 0d 0a | 20 20 20 20 20 20 76 61 |is set..| va|
|000047c0| 72 20 70 72 65 66 20 3d | 20 43 6f 6d 70 6f 6e 65 |r pref =| Compone|
|000047d0| 6e 74 73 2e 63 6c 61 73 | 73 65 73 5b 27 40 6d 6f |nts.clas|ses['@mo|
|000047e0| 7a 69 6c 6c 61 2e 6f 72 | 67 2f 70 72 65 66 65 72 |zilla.or|g/prefer|
|000047f0| 65 6e 63 65 73 2d 73 65 | 72 76 69 63 65 3b 31 27 |ences-se|rvice;1'|
|00004800| 5d 2e 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |]... | |
|00004810| 20 20 20 20 20 20 20 20 | 20 67 65 74 53 65 72 76 | | getServ|
|00004820| 69 63 65 28 43 6f 6d 70 | 6f 6e 65 6e 74 73 2e 69 |ice(Comp|onents.i|
|00004830| 6e 74 65 72 66 61 63 65 | 73 2e 6e 73 49 50 72 65 |nterface|s.nsIPre|
|00004840| 66 42 72 61 6e 63 68 29 | 3b 0d 0a 20 20 20 20 20 |fBranch)|;.. |
|00004850| 20 69 66 20 28 70 72 65 | 66 2e 67 65 74 49 6e 74 | if (pre|f.getInt|
|00004860| 50 72 65 66 28 22 6e 65 | 74 77 6f 72 6b 2e 63 6f |Pref("ne|twork.co|
|00004870| 6f 6b 69 65 2e 63 6f 6f | 6b 69 65 42 65 68 61 76 |okie.coo|kieBehav|
|00004880| 69 6f 72 22 29 20 3d 3d | 20 33 29 20 7b 0d 0a 0d |ior") ==| 3) {...|
|00004890| 0a 20 20 20 20 20 20 20 | 20 2f 2f 20 6d 61 6b 65 |. | // make|
|000048a0| 20 73 75 72 65 20 70 33 | 70 20 64 6c 6c 20 65 78 | sure p3|p dll ex|
|000048b0| 69 73 74 73 2c 20 65 6c | 73 65 20 77 65 20 63 61 |ists, el|se we ca|
|000048c0| 6e 27 74 20 6b 65 65 70 | 20 70 72 65 66 20 73 65 |n't keep| pref se|
|000048d0| 74 0d 0a 20 20 20 20 20 | 20 20 20 69 66 20 28 21 |t.. | if (!|
|000048e0| 28 22 40 6d 6f 7a 69 6c | 6c 61 2e 6f 72 67 2f 63 |("@mozil|la.org/c|
|000048f0| 6f 6f 6b 69 65 2d 63 6f | 6e 73 65 6e 74 3b 31 22 |ookie-co|nsent;1"|
|00004900| 20 69 6e 20 43 6f 6d 70 | 6f 6e 65 6e 74 73 2e 63 | in Comp|onents.c|
|00004910| 6c 61 73 73 65 73 29 29 | 20 7b 0d 0a 20 20 20 20 |lasses))| {.. |
|00004920| 20 20 20 20 20 20 70 72 | 65 66 2e 73 65 74 49 6e | pr|ef.setIn|
|00004930| 74 50 72 65 66 28 22 6e | 65 74 77 6f 72 6b 2e 63 |tPref("n|etwork.c|
|00004940| 6f 6f 6b 69 65 2e 63 6f | 6f 6b 69 65 42 65 68 61 |ookie.co|okieBeha|
|00004950| 76 69 6f 72 22 2c 20 30 | 29 3b 0d 0a 20 20 20 20 |vior", 0|);.. |
|00004960| 20 20 20 20 7d 0d 0a 20 | 20 20 20 20 20 7d 0d 0a | }.. | }..|
|00004970| 0d 0a 20 20 20 20 20 20 | 69 66 20 28 22 40 6d 6f |.. |if ("@mo|
|00004980| 7a 69 6c 6c 61 2e 6f 72 | 67 2f 63 6f 6f 6b 69 65 |zilla.or|g/cookie|
|00004990| 2d 63 6f 6e 73 65 6e 74 | 3b 31 22 20 69 6e 20 43 |-consent|;1" in C|
|000049a0| 6f 6d 70 6f 6e 65 6e 74 | 73 2e 63 6c 61 73 73 65 |omponent|s.classe|
|000049b0| 73 29 20 7b 0d 0a 0d 0a | 20 20 20 20 20 20 20 20 |s) {....| |
|000049c0| 2f 2f 20 70 33 70 20 64 | 6c 6c 20 65 78 69 73 74 |// p3p d|ll exist|
|000049d0| 73 20 73 6f 20 63 72 65 | 61 74 65 20 61 6e 20 6f |s so cre|ate an o|
|000049e0| 62 73 65 72 76 65 72 20 | 66 6f 72 20 63 68 61 6e |bserver |for chan|
|000049f0| 67 65 73 20 69 6e 20 76 | 69 73 69 62 69 6c 69 74 |ges in v|isibilit|
|00004a00| 79 20 6f 66 20 63 6f 6f | 6b 69 65 20 69 63 6f 6e |y of coo|kie icon|
|00004a10| 0d 0a 20 20 20 20 20 20 | 20 20 76 61 72 20 6f 62 |.. | var ob|
|00004a20| 73 65 72 76 65 72 53 65 | 72 76 69 63 65 20 3d 20 |serverSe|rvice = |
|00004a30| 43 6f 6d 70 6f 6e 65 6e | 74 73 2e 63 6c 61 73 73 |Componen|ts.class|
|00004a40| 65 73 5b 22 40 6d 6f 7a | 69 6c 6c 61 2e 6f 72 67 |es["@moz|illa.org|
|00004a50| 2f 6f 62 73 65 72 76 65 | 72 2d 73 65 72 76 69 63 |/observe|r-servic|
|00004a60| 65 3b 31 22 5d 2e 67 65 | 74 53 65 72 76 69 63 65 |e;1"].ge|tService|
|00004a70| 28 43 6f 6d 70 6f 6e 65 | 6e 74 73 2e 69 6e 74 65 |(Compone|nts.inte|
|00004a80| 72 66 61 63 65 73 2e 6e | 73 49 4f 62 73 65 72 76 |rfaces.n|sIObserv|
|00004a90| 65 72 53 65 72 76 69 63 | 65 29 3b 0d 0a 20 20 20 |erServic|e);.. |
|00004aa0| 20 20 20 20 20 6f 62 73 | 65 72 76 65 72 53 65 72 | obs|erverSer|
|00004ab0| 76 69 63 65 2e 61 64 64 | 4f 62 73 65 72 76 65 72 |vice.add|Observer|
|00004ac0| 28 63 6f 6f 6b 69 65 49 | 63 6f 6e 4f 62 73 65 72 |(cookieI|conObser|
|00004ad0| 76 65 72 2c 20 22 63 6f | 6f 6b 69 65 49 63 6f 6e |ver, "co|okieIcon|
|00004ae0| 22 2c 20 66 61 6c 73 65 | 29 3b 0d 0a 0d 0a 20 20 |", false|);.... |
|00004af0| 20 20 20 20 20 20 2f 2f | 20 64 65 74 65 72 6d 69 | //| determi|
|00004b00| 6e 65 20 77 68 65 74 68 | 65 72 20 6f 72 20 6e 6f |ne wheth|er or no|
|00004b10| 74 20 63 6f 6f 6b 69 65 | 20 69 63 6f 6e 20 69 6e |t cookie| icon in|
|00004b20| 20 74 68 69 73 20 6e 65 | 77 20 77 69 6e 64 6f 77 | this ne|w window|
|00004b30| 20 73 68 6f 75 6c 64 20 | 62 65 20 64 69 73 70 6c | should |be displ|
|00004b40| 61 79 65 64 0d 0a 20 20 | 20 20 20 20 20 20 76 61 |ayed.. | va|
|00004b50| 72 20 63 6f 6f 6b 69 65 | 73 65 72 76 69 63 65 20 |r cookie|service |
|00004b60| 3d 20 43 6f 6d 70 6f 6e | 65 6e 74 73 2e 63 6c 61 |= Compon|ents.cla|
|00004b70| 73 73 65 73 5b 22 40 6d | 6f 7a 69 6c 6c 61 2e 6f |sses["@m|ozilla.o|
|00004b80| 72 67 2f 63 6f 6f 6b 69 | 65 53 65 72 76 69 63 65 |rg/cooki|eService|
|00004b90| 3b 31 22 5d 2e 67 65 74 | 53 65 72 76 69 63 65 28 |;1"].get|Service(|
|00004ba0| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 63 6f 6f 6b |);.. | cook|
|00004bb0| 69 65 73 65 72 76 69 63 | 65 20 3d 20 63 6f 6f 6b |ieservic|e = cook|
|00004bc0| 69 65 73 65 72 76 69 63 | 65 2e 51 75 65 72 79 49 |ieservic|e.QueryI|
|00004bd0| 6e 74 65 72 66 61 63 65 | 28 43 6f 6d 70 6f 6e 65 |nterface|(Compone|
|00004be0| 6e 74 73 2e 69 6e 74 65 | 72 66 61 63 65 73 2e 6e |nts.inte|rfaces.n|
|00004bf0| 73 49 43 6f 6f 6b 69 65 | 53 65 72 76 69 63 65 29 |sICookie|Service)|
|00004c00| 3b 0d 0a 20 20 20 20 20 | 20 20 20 69 66 20 28 63 |;.. | if (c|
|00004c10| 6f 6f 6b 69 65 73 65 72 | 76 69 63 65 2e 63 6f 6f |ookieser|vice.coo|
|00004c20| 6b 69 65 49 63 6f 6e 49 | 73 56 69 73 69 62 6c 65 |kieIconI|sVisible|
|00004c30| 29 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 76 |) {.. | v|
|00004c40| 61 72 20 63 6f 6f 6b 69 | 65 49 63 6f 6e 20 3d 20 |ar cooki|eIcon = |
|00004c50| 64 6f 63 75 6d 65 6e 74 | 2e 67 65 74 45 6c 65 6d |document|.getElem|
|00004c60| 65 6e 74 42 79 49 64 28 | 22 70 72 69 76 61 63 79 |entById(|"privacy|
|00004c70| 2d 62 75 74 74 6f 6e 22 | 29 3b 0d 0a 20 20 20 20 |-button"|);.. |
|00004c80| 20 20 20 20 20 20 69 66 | 20 28 63 6f 6f 6b 69 65 | if| (cookie|
|00004c90| 49 63 6f 6e 29 20 7b 0d | 0a 20 20 20 20 20 20 20 |Icon) {.|. |
|00004ca0| 20 20 20 20 20 63 6f 6f | 6b 69 65 49 63 6f 6e 2e | coo|kieIcon.|
|00004cb0| 72 65 6d 6f 76 65 41 74 | 74 72 69 62 75 74 65 28 |removeAt|tribute(|
|00004cc0| 22 68 69 64 64 65 6e 22 | 29 3b 0d 0a 20 20 20 20 |"hidden"|);.. |
|00004cd0| 20 20 20 20 20 20 7d 0d | 0a 20 20 20 20 20 20 20 | }.|. |
|00004ce0| 20 7d 0d 0a 20 20 20 20 | 20 20 7d 0d 0a 20 20 20 | }.. | }.. |
|00004cf0| 20 7d 0d 0a 0d 0a 20 20 | 20 20 66 75 6e 63 74 69 | }.... | functi|
|00004d00| 6f 6e 20 43 6f 6f 6b 69 | 65 54 61 73 6b 73 4f 6e |on Cooki|eTasksOn|
|00004d10| 55 6e 6c 6f 61 64 28 65 | 76 65 6e 74 29 20 7b 0d |Unload(e|vent) {.|
|00004d20| 0a 20 20 20 20 20 20 69 | 66 20 28 22 40 6d 6f 7a |. i|f ("@moz|
|00004d30| 69 6c 6c 61 2e 6f 72 67 | 2f 63 6f 6f 6b 69 65 2d |illa.org|/cookie-|
|00004d40| 63 6f 6e 73 65 6e 74 3b | 31 22 20 69 6e 20 43 6f |consent;|1" in Co|
|00004d50| 6d 70 6f 6e 65 6e 74 73 | 2e 63 6c 61 73 73 65 73 |mponents|.classes|
|00004d60| 29 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 76 61 72 |) {.. | var|
|00004d70| 20 6f 62 73 65 72 76 65 | 72 53 65 72 76 69 63 65 | observe|rService|
|00004d80| 20 3d 20 43 6f 6d 70 6f | 6e 65 6e 74 73 2e 63 6c | = Compo|nents.cl|
|00004d90| 61 73 73 65 73 5b 22 40 | 6d 6f 7a 69 6c 6c 61 2e |asses["@|mozilla.|
|00004da0| 6f 72 67 2f 6f 62 73 65 | 72 76 65 72 2d 73 65 72 |org/obse|rver-ser|
|00004db0| 76 69 63 65 3b 31 22 5d | 2e 67 65 74 53 65 72 76 |vice;1"]|.getServ|
|00004dc0| 69 63 65 28 43 6f 6d 70 | 6f 6e 65 6e 74 73 2e 69 |ice(Comp|onents.i|
|00004dd0| 6e 74 65 72 66 61 63 65 | 73 2e 6e 73 49 4f 62 73 |nterface|s.nsIObs|
|00004de0| 65 72 76 65 72 53 65 72 | 76 69 63 65 29 3b 0d 0a |erverSer|vice);..|
|00004df0| 20 20 20 20 20 20 20 20 | 6f 62 73 65 72 76 65 72 | |observer|
|00004e00| 53 65 72 76 69 63 65 2e | 72 65 6d 6f 76 65 4f 62 |Service.|removeOb|
|00004e10| 73 65 72 76 65 72 28 63 | 6f 6f 6b 69 65 49 63 6f |server(c|ookieIco|
|00004e20| 6e 4f 62 73 65 72 76 65 | 72 2c 20 22 63 6f 6f 6b |nObserve|r, "cook|
|00004e30| 69 65 49 63 6f 6e 22 2c | 20 66 61 6c 73 65 29 3b |ieIcon",| false);|
|00004e40| 0d 0a 20 20 20 20 20 20 | 7d 0d 0a 20 20 20 20 7d |.. |}.. }|
|00004e50| 0d 0a 0d 0a 20 20 20 20 | 61 64 64 45 76 65 6e 74 |.... |addEvent|
|00004e60| 4c 69 73 74 65 6e 65 72 | 28 22 6c 6f 61 64 22 2c |Listener|("load",|
|00004e70| 20 43 6f 6f 6b 69 65 54 | 61 73 6b 73 4f 6e 4c 6f | CookieT|asksOnLo|
|00004e80| 61 64 2c 20 66 61 6c 73 | 65 29 3b 0d 0a 0d 0a 20 |ad, fals|e);.... |
|00004e90| 20 5d 5d 3e 0d 0a 20 20 | 3c 2f 73 63 72 69 70 74 | ]]>.. |</script|
|00004ea0| 3e 20 20 20 20 20 20 20 | 20 20 0d 0a 0d 0a 20 20 |> | .... |
|00004eb0| 3c 21 2d 2d 20 73 74 61 | 74 75 73 62 61 72 4f 76 |<!-- sta|tusbarOv|
|00004ec0| 65 72 6c 61 79 20 69 74 | 65 6d 73 20 2d 2d 3e 0d |erlay it|ems -->.|
|00004ed0| 0a 0d 0a 20 20 3c 73 74 | 61 74 75 73 62 61 72 20 |... <st|atusbar |
|00004ee0| 69 64 3d 22 73 74 61 74 | 75 73 2d 62 61 72 22 3e |id="stat|us-bar">|
|00004ef0| 0d 0a 20 20 20 20 3c 73 | 74 61 74 75 73 62 61 72 |.. <s|tatusbar|
|00004f00| 70 61 6e 65 6c 20 63 6c | 61 73 73 3d 22 73 74 61 |panel cl|ass="sta|
|00004f10| 74 75 73 62 61 72 70 61 | 6e 65 6c 2d 69 63 6f 6e |tusbarpa|nel-icon|
|00004f20| 69 63 22 20 69 64 3d 22 | 70 72 69 76 61 63 79 2d |ic" id="|privacy-|
|00004f30| 62 75 74 74 6f 6e 22 0d | 0a 20 20 20 20 20 20 20 |button".|. |
|00004f40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 68 69 64 | | hid|
|00004f50| 64 65 6e 3d 22 74 72 75 | 65 22 20 69 6e 73 65 72 |den="tru|e" inser|
|00004f60| 74 62 65 66 6f 72 65 3d | 22 73 65 63 75 72 69 74 |tbefore=|"securit|
|00004f70| 79 2d 62 75 74 74 6f 6e | 22 0d 0a 20 20 20 20 20 |y-button|".. |
|00004f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6f | | o|
|00004f90| 6e 63 6f 6d 6d 61 6e 64 | 3d 22 76 69 65 77 50 33 |ncommand|="viewP3|
|00004fa0| 50 44 69 61 6c 6f 67 28 | 29 22 20 74 6f 6f 6c 74 |PDialog(|)" toolt|
|00004fb0| 69 70 74 65 78 74 3d 22 | 26 63 6f 6f 6b 69 65 49 |iptext="|&cookieI|
|00004fc0| 63 6f 6e 2e 6c 61 62 65 | 6c 3b 22 2f 3e 0d 0a 20 |con.labe|l;"/>.. |
|00004fd0| 20 3c 2f 73 74 61 74 75 | 73 62 61 72 3e 0d 0a 0d | </statu|sbar>...|
|00004fe0| 0a 3c 2f 6f 76 65 72 6c | 61 79 3e 0d 0a 50 4b 03 |.</overl|ay>..PK.|
|00004ff0| 04 0a 00 00 00 00 00 60 | 83 87 30 dd 85 71 b7 93 |.......`|..0..q..|
|00005000| 2f 00 00 93 2f 00 00 29 | 00 15 00 63 6f 6e 74 65 |/.../..)|...conte|
|00005010| 6e 74 2f 63 6f 6f 6b 69 | 65 2f 63 6f 6f 6b 69 65 |nt/cooki|e/cookie|
|00005020| 4e 61 76 69 67 61 74 6f | 72 4f 76 65 72 6c 61 79 |Navigato|rOverlay|
|00005030| 2e 78 75 6c 55 54 09 00 | 03 44 8e 74 40 f8 1b d3 |.xulUT..|.D.t@...|
|00005040| 42 55 78 04 00 eb 03 01 | 02 3c 3f 78 6d 6c 20 76 |BUx.....|.<?xml v|
|00005050| 65 72 73 69 6f 6e 3d 22 | 31 2e 30 22 3f 3e 0d 0a |ersion="|1.0"?>..|
|00005060| 0d 0a 3c 21 2d 2d 0d 0a | 20 20 20 54 68 65 20 63 |..<!--..| The c|
|00005070| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 74 68 69 73 20 |ontents |of this |
|00005080| 66 69 6c 65 20 61 72 65 | 20 73 75 62 6a 65 63 74 |file are| subject|
|00005090| 20 74 6f 20 74 68 65 20 | 4e 65 74 73 63 61 70 65 | to the |Netscape|
|000050a0| 20 50 75 62 6c 69 63 0d | 0a 20 20 20 4c 69 63 65 | Public.|. Lice|
|000050b0| 6e 73 65 20 56 65 72 73 | 69 6f 6e 20 31 2e 31 20 |nse Vers|ion 1.1 |
|000050c0| 28 74 68 65 20 22 4c 69 | 63 65 6e 73 65 22 29 3b |(the "Li|cense");|
|000050d0| 20 79 6f 75 20 6d 61 79 | 20 6e 6f 74 20 75 73 65 | you may| not use|
|000050e0| 20 74 68 69 73 20 66 69 | 6c 65 0d 0a 20 20 20 65 | this fi|le.. e|
|000050f0| 78 63 65 70 74 20 69 6e | 20 63 6f 6d 70 6c 69 61 |xcept in| complia|
|00005100| 6e 63 65 20 77 69 74 68 | 20 74 68 65 20 4c 69 63 |nce with| the Lic|
|00005110| 65 6e 73 65 2e 20 59 6f | 75 20 6d 61 79 20 6f 62 |ense. Yo|u may ob|
|00005120| 74 61 69 6e 20 61 20 63 | 6f 70 79 20 6f 66 0d 0a |tain a c|opy of..|
|00005130| 20 20 20 74 68 65 20 4c | 69 63 65 6e 73 65 20 61 | the L|icense a|
|00005140| 74 20 68 74 74 70 3a 2f | 2f 77 77 77 2e 6d 6f 7a |t http:/|/www.moz|
|00005150| 69 6c 6c 61 2e 6f 72 67 | 2f 4e 50 4c 2f 0d 0a 20 |illa.org|/NPL/.. |
|00005160| 20 20 20 0d 0a 20 20 20 | 53 6f 66 74 77 61 72 65 | .. |Software|
|00005170| 20 64 69 73 74 72 69 62 | 75 74 65 64 20 75 6e 64 | distrib|uted und|
|00005180| 65 72 20 74 68 65 20 4c | 69 63 65 6e 73 65 20 69 |er the L|icense i|
|00005190| 73 20 64 69 73 74 72 69 | 62 75 74 65 64 20 6f 6e |s distri|buted on|
|000051a0| 20 61 6e 20 22 41 53 0d | 0a 20 20 20 49 53 22 20 | an "AS.|. IS" |
|000051b0| 62 61 73 69 73 2c 20 57 | 49 54 48 4f 55 54 20 57 |basis, W|ITHOUT W|
|000051c0| 41 52 52 41 4e 54 59 20 | 4f 46 20 41 4e 59 20 4b |ARRANTY |OF ANY K|
|000051d0| 49 4e 44 2c 20 65 69 74 | 68 65 72 20 65 78 70 72 |IND, eit|her expr|
|000051e0| 65 73 73 20 6f 72 0d 0a | 20 20 20 69 6d 70 6c 69 |ess or..| impli|
|000051f0| 65 64 2e 20 53 65 65 20 | 74 68 65 20 4c 69 63 65 |ed. See |the Lice|
|00005200| 6e 73 65 20 66 6f 72 20 | 74 68 65 20 73 70 65 63 |nse for |the spec|
|00005210| 69 66 69 63 20 6c 61 6e | 67 75 61 67 65 20 67 6f |ific lan|guage go|
|00005220| 76 65 72 6e 69 6e 67 0d | 0a 20 20 20 72 69 67 68 |verning.|. righ|
|00005230| 74 73 20 61 6e 64 20 6c | 69 6d 69 74 61 74 69 6f |ts and l|imitatio|
|00005240| 6e 73 20 75 6e 64 65 72 | 20 74 68 65 20 4c 69 63 |ns under| the Lic|
|00005250| 65 6e 73 65 2e 0d 0a 20 | 20 20 20 0d 0a 20 20 20 |ense... | .. |
|00005260| 54 68 65 20 4f 72 69 67 | 69 6e 61 6c 20 43 6f 64 |The Orig|inal Cod|
|00005270| 65 20 69 73 20 4d 6f 7a | 69 6c 6c 61 20 43 6f 6d |e is Moz|illa Com|
|00005280| 6d 75 6e 69 63 61 74 6f | 72 20 63 6c 69 65 6e 74 |municato|r client|
|00005290| 20 63 6f 64 65 2c 20 72 | 65 6c 65 61 73 65 64 0d | code, r|eleased.|
|000052a0| 0a 20 20 20 4d 61 72 63 | 68 20 33 31 2c 20 31 39 |. Marc|h 31, 19|
|000052b0| 39 38 2e 0d 0a 20 20 20 | 0d 0a 20 20 20 54 68 65 |98... |.. The|
|000052c0| 20 49 6e 69 74 69 61 6c | 20 44 65 76 65 6c 6f 70 | Initial| Develop|
|000052d0| 65 72 20 6f 66 20 74 68 | 65 20 4f 72 69 67 69 6e |er of th|e Origin|
|000052e0| 61 6c 20 43 6f 64 65 20 | 69 73 20 4e 65 74 73 63 |al Code |is Netsc|
|000052f0| 61 70 65 0d 0a 20 20 20 | 43 6f 6d 6d 75 6e 69 63 |ape.. |Communic|
|00005300| 61 74 69 6f 6e 73 20 43 | 6f 72 70 6f 72 61 74 69 |ations C|orporati|
|00005310| 6f 6e 2e 20 50 6f 72 74 | 69 6f 6e 73 20 63 72 65 |on. Port|ions cre|
|00005320| 61 74 65 64 20 62 79 20 | 4e 65 74 73 63 61 70 65 |ated by |Netscape|
|00005330| 20 61 72 65 0d 0a 20 20 | 20 43 6f 70 79 72 69 67 | are.. | Copyrig|
|00005340| 68 74 20 28 43 29 20 31 | 39 39 38 2d 31 39 39 39 |ht (C) 1|998-1999|
|00005350| 20 4e 65 74 73 63 61 70 | 65 20 43 6f 6d 6d 75 6e | Netscap|e Commun|
|00005360| 69 63 61 74 69 6f 6e 73 | 20 43 6f 72 70 6f 72 61 |ications| Corpora|
|00005370| 74 69 6f 6e 2e 20 41 6c | 6c 0d 0a 20 20 20 52 69 |tion. Al|l.. Ri|
|00005380| 67 68 74 73 20 52 65 73 | 65 72 76 65 64 2e 0d 0a |ghts Res|erved...|
|00005390| 20 20 20 0d 0a 20 20 20 | 43 6f 6e 74 72 69 62 75 | .. |Contribu|
|000053a0| 74 6f 72 28 73 29 3a 20 | 0d 0a 20 20 2d 2d 3e 0d |tor(s): |.. -->.|
|000053b0| 0a 0d 0a 3c 21 44 4f 43 | 54 59 50 45 20 6f 76 65 |...<!DOC|TYPE ove|
|000053c0| 72 6c 61 79 20 53 59 53 | 54 45 4d 20 22 63 68 72 |rlay SYS|TEM "chr|
|000053d0| 6f 6d 65 3a 2f 2f 63 6f | 6f 6b 69 65 2f 6c 6f 63 |ome://co|okie/loc|
|000053e0| 61 6c 65 2f 63 6f 6f 6b | 69 65 4e 61 76 69 67 61 |ale/cook|ieNaviga|
|000053f0| 74 6f 72 4f 76 65 72 6c | 61 79 2e 64 74 64 22 3e |torOverl|ay.dtd">|
|00005400| 0d 0a 0d 0a 3c 6f 76 65 | 72 6c 61 79 20 69 64 3d |....<ove|rlay id=|
|00005410| 22 63 6f 6f 6b 69 65 4e | 61 76 69 67 61 74 6f 72 |"cookieN|avigator|
|00005420| 4f 76 65 72 6c 61 79 22 | 0d 0a 20 20 20 20 20 20 |Overlay"|.. |
|00005430| 20 20 20 78 6d 6c 6e 73 | 3d 22 68 74 74 70 3a 2f | xmlns|="http:/|
|00005440| 2f 77 77 77 2e 6d 6f 7a | 69 6c 6c 61 2e 6f 72 67 |/www.moz|illa.org|
|00005450| 2f 6b 65 79 6d 61 73 74 | 65 72 2f 67 61 74 65 6b |/keymast|er/gatek|
|00005460| 65 65 70 65 72 2f 74 68 | 65 72 65 2e 69 73 2e 6f |eeper/th|ere.is.o|
|00005470| 6e 6c 79 2e 78 75 6c 22 | 3e 0d 0a 0d 0a 20 20 3c |nly.xul"|>.... <|
|00005480| 73 63 72 69 70 74 20 74 | 79 70 65 3d 22 61 70 70 |script t|ype="app|
|00005490| 6c 69 63 61 74 69 6f 6e | 2f 78 2d 6a 61 76 61 73 |lication|/x-javas|
|000054a0| 63 72 69 70 74 22 20 73 | 72 63 3d 22 63 68 72 6f |cript" s|rc="chro|
|000054b0| 6d 65 3a 2f 2f 63 6f 6f | 6b 69 65 2f 63 6f 6e 74 |me://coo|kie/cont|
|000054c0| 65 6e 74 2f 63 6f 6f 6b | 69 65 4f 76 65 72 6c 61 |ent/cook|ieOverla|
|000054d0| 79 2e 6a 73 22 2f 3e 0d | 0a 20 20 3c 73 63 72 69 |y.js"/>.|. <scri|
|000054e0| 70 74 20 74 79 70 65 3d | 22 61 70 70 6c 69 63 61 |pt type=|"applica|
|000054f0| 74 69 6f 6e 2f 78 2d 6a | 61 76 61 73 63 72 69 70 |tion/x-j|avascrip|
|00005500| 74 22 3e 0d 0a 20 20 3c | 21 5b 43 44 41 54 41 5b |t">.. <|![CDATA[|
|00005510| 0d 0a 20 20 20 20 2f 2a | 2a 2a 2a 2a 2a 2a 20 54 |.. /*|****** T|
|00005520| 48 45 20 46 4f 4c 4c 4f | 57 49 4e 47 20 49 53 20 |HE FOLLO|WING IS |
|00005530| 46 4f 52 20 54 48 45 20 | 54 41 53 4b 4d 45 4e 55 |FOR THE |TASKMENU|
|00005540| 20 4f 56 45 52 4c 41 59 | 20 2a 2a 2a 2a 2a 2a 2a | OVERLAY| *******|
|00005550| 2f 0d 0a 0d 0a 20 20 20 | 20 2f 2f 20 62 6f 74 68 |/.... | // both|
|00005560| 20 61 72 65 20 6e 65 63 | 65 73 73 61 72 79 2e 20 | are nec|essary. |
|00005570| 70 6f 70 75 70 6d 61 6e | 61 67 65 72 20 69 73 20 |popupman|ager is |
|00005580| 6a 75 73 74 20 61 20 73 | 70 65 63 69 61 6c 20 63 |just a s|pecial c|
|00005590| 61 73 65 0d 0a 20 20 20 | 20 2f 2f 20 6f 66 20 70 |ase.. | // of p|
|000055a0| 65 72 6d 69 73 73 69 6f | 6e 6d 61 6e 61 67 65 72 |ermissio|nmanager|
|000055b0| 20 62 75 74 20 64 6f 65 | 73 20 65 78 74 72 61 20 | but doe|s extra |
|000055c0| 77 6f 72 6b 20 6f 6e 20 | 61 64 64 2f 72 65 6d 6f |work on |add/remo|
|000055d0| 76 65 0d 0a 20 20 20 20 | 63 6f 6e 73 74 20 6e 73 |ve.. |const ns|
|000055e0| 49 50 65 72 6d 69 73 73 | 69 6f 6e 4d 61 6e 61 67 |IPermiss|ionManag|
|000055f0| 65 72 20 3d 20 43 6f 6d | 70 6f 6e 65 6e 74 73 2e |er = Com|ponents.|
|00005600| 69 6e 74 65 72 66 61 63 | 65 73 2e 6e 73 49 50 65 |interfac|es.nsIPe|
|00005610| 72 6d 69 73 73 69 6f 6e | 4d 61 6e 61 67 65 72 3b |rmission|Manager;|
|00005620| 0d 0a 20 20 20 20 63 6f | 6e 73 74 20 6e 73 49 43 |.. co|nst nsIC|
|00005630| 6f 6f 6b 69 65 50 65 72 | 6d 69 73 73 69 6f 6e 20 |ookiePer|mission |
|00005640| 3d 20 43 6f 6d 70 6f 6e | 65 6e 74 73 2e 69 6e 74 |= Compon|ents.int|
|00005650| 65 72 66 61 63 65 73 2e | 6e 73 49 43 6f 6f 6b 69 |erfaces.|nsICooki|
|00005660| 65 50 65 72 6d 69 73 73 | 69 6f 6e 3b 0d 0a 20 20 |ePermiss|ion;.. |
|00005670| 20 20 76 61 72 20 70 65 | 72 6d 69 73 73 69 6f 6e | var pe|rmission|
|00005680| 6d 61 6e 61 67 65 72 3b | 0d 0a 20 20 20 20 76 61 |manager;|.. va|
|00005690| 72 20 70 6f 70 75 70 6d | 61 6e 61 67 65 72 3b 0d |r popupm|anager;.|
|000056a0| 0a 20 20 20 20 0d 0a 20 | 20 20 20 2f 2f 20 64 65 |. .. | // de|
|000056b0| 74 65 72 6d 69 6e 65 20 | 77 68 69 63 68 20 69 74 |termine |which it|
|000056c0| 65 6d 73 20 77 65 20 6e | 65 65 64 20 74 6f 20 68 |ems we n|eed to h|
|000056d0| 69 64 65 20 6f 72 20 64 | 69 73 61 62 6c 65 20 66 |ide or d|isable f|
|000056e0| 72 6f 6d 20 74 68 65 20 | 74 61 73 6b 20 6d 65 6e |rom the |task men|
|000056f0| 75 0d 0a 20 20 20 20 66 | 75 6e 63 74 69 6f 6e 20 |u.. f|unction |
|00005700| 43 68 65 63 6b 46 6f 72 | 56 69 73 69 62 69 6c 69 |CheckFor|Visibili|
|00005710| 74 79 28 29 0d 0a 20 20 | 20 20 7b 0d 0a 20 20 20 |ty().. | {.. |
|00005720| 20 20 20 2f 2f 20 6f 62 | 74 61 69 6e 20 61 63 63 | // ob|tain acc|
|00005730| 65 73 73 20 74 6f 20 70 | 65 72 6d 69 73 73 69 6f |ess to p|ermissio|
|00005740| 6e 6d 61 6e 61 67 65 72 | 20 61 6e 64 20 70 6f 70 |nmanager| and pop|
|00005750| 75 70 6d 61 6e 61 67 65 | 72 0d 0a 20 20 20 20 20 |upmanage|r.. |
|00005760| 20 2f 2f 20 28 70 6f 70 | 75 70 20 6d 61 6e 61 67 | // (pop|up manag|
|00005770| 65 72 20 69 73 20 61 20 | 77 72 61 70 70 65 72 20 |er is a |wrapper |
|00005780| 61 72 6f 75 6e 64 20 70 | 65 72 6d 69 73 73 69 6f |around p|ermissio|
|00005790| 6e 20 74 68 61 74 20 64 | 6f 65 73 20 65 78 74 72 |n that d|oes extr|
|000057a0| 61 20 77 6f 72 6b 29 0d | 0a 20 20 20 20 20 20 70 |a work).|. p|
|000057b0| 65 72 6d 69 73 73 69 6f | 6e 6d 61 6e 61 67 65 72 |ermissio|nmanager|
|000057c0| 20 3d 0d 0a 20 20 20 20 | 20 20 20 20 43 6f 6d 70 | =.. | Comp|
|000057d0| 6f 6e 65 6e 74 73 2e 63 | 6c 61 73 73 65 73 5b 22 |onents.c|lasses["|
|000057e0| 40 6d 6f 7a 69 6c 6c 61 | 2e 6f 72 67 2f 70 65 72 |@mozilla|.org/per|
|000057f0| 6d 69 73 73 69 6f 6e 6d | 61 6e 61 67 65 72 3b 31 |missionm|anager;1|
|00005800| 22 5d 0d 0a 20 20 20 20 | 20 20 20 20 20 20 2e 67 |"].. | .g|
|00005810| 65 74 53 65 72 76 69 63 | 65 28 43 6f 6d 70 6f 6e |etServic|e(Compon|
|00005820| 65 6e 74 73 2e 69 6e 74 | 65 72 66 61 63 65 73 2e |ents.int|erfaces.|
|00005830| 6e 73 49 50 65 72 6d 69 | 73 73 69 6f 6e 4d 61 6e |nsIPermi|ssionMan|
|00005840| 61 67 65 72 29 3b 0d 0a | 20 20 20 20 20 20 70 6f |ager);..| po|
|00005850| 70 75 70 6d 61 6e 61 67 | 65 72 20 3d 0d 0a 20 20 |pupmanag|er =.. |
|00005860| 20 20 20 20 20 20 43 6f | 6d 70 6f 6e 65 6e 74 73 | Co|mponents|
|00005870| 2e 63 6c 61 73 73 65 73 | 5b 22 40 6d 6f 7a 69 6c |.classes|["@mozil|
|00005880| 6c 61 2e 6f 72 67 2f 50 | 6f 70 75 70 57 69 6e 64 |la.org/P|opupWind|
|00005890| 6f 77 4d 61 6e 61 67 65 | 72 3b 31 22 5d 0d 0a 20 |owManage|r;1"].. |
|000058a0| 20 20 20 20 20 20 20 20 | 20 2e 67 65 74 53 65 72 | | .getSer|
|000058b0| 76 69 63 65 28 43 6f 6d | 70 6f 6e 65 6e 74 73 2e |vice(Com|ponents.|
|000058c0| 69 6e 74 65 72 66 61 63 | 65 73 2e 6e 73 49 50 6f |interfac|es.nsIPo|
|000058d0| 70 75 70 57 69 6e 64 6f | 77 4d 61 6e 61 67 65 72 |pupWindo|wManager|
|000058e0| 29 3b 0d 0a 20 20 20 20 | 20 20 69 66 20 28 21 28 |);.. | if (!(|
|000058f0| 22 5f 63 6f 6e 74 65 6e | 74 22 20 69 6e 20 77 69 |"_conten|t" in wi|
|00005900| 6e 64 6f 77 29 20 7c 7c | 20 21 77 69 6e 64 6f 77 |ndow) ||| !window|
|00005910| 2e 5f 63 6f 6e 74 65 6e | 74 29 20 7b 0d 0a 20 20 |._conten|t) {.. |
|00005920| 20 20 20 20 20 20 2f 2f | 20 74 68 69 73 20 6f 63 | //| this oc|
|00005930| 63 75 72 73 20 69 66 20 | 64 6f 69 6e 67 20 74 61 |curs if |doing ta|
|00005940| 73 6b 73 2d 3e 70 72 69 | 76 61 63 79 2d 3e 63 6f |sks->pri|vacy->co|
|00005950| 6f 6b 69 65 2d 3e 62 6c | 6f 63 6b 20 66 72 6f 6d |okie->bl|ock from|
|00005960| 20 6a 61 76 61 20 63 6f | 6e 73 6f 6c 65 0d 0a 20 | java co|nsole.. |
|00005970| 20 20 20 20 20 20 20 72 | 65 74 75 72 6e 3b 0d 0a | r|eturn;..|
|00005980| 20 20 20 20 20 20 7d 0d | 0a 0d 0a 20 20 20 20 20 | }.|... |
|00005990| 20 2f 2f 20 64 65 74 65 | 72 6d 69 6e 65 20 63 75 | // dete|rmine cu|
|000059a0| 72 72 65 6e 74 20 73 74 | 61 74 65 20 28 62 6c 6f |rrent st|ate (blo|
|000059b0| 63 6b 65 64 20 6f 72 20 | 75 6e 62 6c 6f 63 6b 65 |cked or |unblocke|
|000059c0| 64 29 20 61 6e 64 20 68 | 69 64 65 20 61 70 70 72 |d) and h|ide appr|
|000059d0| 6f 70 72 69 61 74 65 20 | 6d 65 6e 75 20 69 74 65 |opriate |menu ite|
|000059e0| 6d 0d 0a 20 20 20 20 20 | 20 76 61 72 20 75 72 69 |m.. | var uri|
|000059f0| 20 3d 20 67 65 74 42 72 | 6f 77 73 65 72 28 29 2e | = getBr|owser().|
|00005a00| 63 75 72 72 65 6e 74 55 | 52 49 3b 0d 0a 20 20 20 |currentU|RI;.. |
|00005a10| 20 20 20 73 65 74 52 61 | 64 69 6f 42 75 74 74 6f | setRa|dioButto|
|00005a20| 6e 28 22 55 73 65 43 6f | 6f 6b 69 65 73 44 65 66 |n("UseCo|okiesDef|
|00005a30| 61 75 6c 74 22 2c 20 75 | 72 69 2c 20 6e 73 49 50 |ault", u|ri, nsIP|
|00005a40| 65 72 6d 69 73 73 69 6f | 6e 4d 61 6e 61 67 65 72 |ermissio|nManager|
|00005a50| 2e 55 4e 4b 4e 4f 57 4e | 5f 41 43 54 49 4f 4e 2c |.UNKNOWN|_ACTION,|
|00005a60| 20 22 63 6f 6f 6b 69 65 | 22 29 3b 0d 0a 20 20 20 | "cookie|");.. |
|00005a70| 20 20 20 73 65 74 52 61 | 64 69 6f 42 75 74 74 6f | setRa|dioButto|
|00005a80| 6e 28 22 41 6c 6c 6f 77 | 43 6f 6f 6b 69 65 73 22 |n("Allow|Cookies"|
|00005a90| 2c 20 75 72 69 2c 20 6e | 73 49 50 65 72 6d 69 73 |, uri, n|sIPermis|
|00005aa0| 73 69 6f 6e 4d 61 6e 61 | 67 65 72 2e 41 4c 4c 4f |sionMana|ger.ALLO|
|00005ab0| 57 5f 41 43 54 49 4f 4e | 2c 20 22 63 6f 6f 6b 69 |W_ACTION|, "cooki|
|00005ac0| 65 22 29 3b 0d 0a 20 20 | 20 20 20 20 73 65 74 52 |e");.. | setR|
|00005ad0| 61 64 69 6f 42 75 74 74 | 6f 6e 28 22 41 6c 6c 6f |adioButt|on("Allo|
|00005ae0| 77 53 65 73 73 69 6f 6e | 43 6f 6f 6b 69 65 73 22 |wSession|Cookies"|
|00005af0| 2c 20 75 72 69 2c 20 6e | 73 49 43 6f 6f 6b 69 65 |, uri, n|sICookie|
|00005b00| 50 65 72 6d 69 73 73 69 | 6f 6e 2e 41 43 43 45 53 |Permissi|on.ACCES|
|00005b10| 53 5f 53 45 53 53 49 4f | 4e 2c 20 22 63 6f 6f 6b |S_SESSIO|N, "cook|
|00005b20| 69 65 22 29 3b 0d 0a 20 | 20 20 20 20 20 73 65 74 |ie");.. | set|
|00005b30| 52 61 64 69 6f 42 75 74 | 74 6f 6e 28 22 42 6c 6f |RadioBut|ton("Blo|
|00005b40| 63 6b 43 6f 6f 6b 69 65 | 73 22 2c 20 75 72 69 2c |ckCookie|s", uri,|
|00005b50| 20 6e 73 49 50 65 72 6d | 69 73 73 69 6f 6e 4d 61 | nsIPerm|issionMa|
|00005b60| 6e 61 67 65 72 2e 44 45 | 4e 59 5f 41 43 54 49 4f |nager.DE|NY_ACTIO|
|00005b70| 4e 2c 20 22 63 6f 6f 6b | 69 65 22 29 3b 0d 0a 20 |N, "cook|ie");.. |
|00005b80| 20 20 20 20 20 73 65 74 | 52 61 64 69 6f 42 75 74 | set|RadioBut|
|00005b90| 74 6f 6e 28 22 55 73 65 | 49 6d 61 67 65 73 44 65 |ton("Use|ImagesDe|
|00005ba0| 66 61 75 6c 74 22 2c 20 | 75 72 69 2c 20 6e 73 49 |fault", |uri, nsI|
|00005bb0| 50 65 72 6d 69 73 73 69 | 6f 6e 4d 61 6e 61 67 65 |Permissi|onManage|
|00005bc0| 72 2e 55 4e 4b 4e 4f 57 | 4e 5f 41 43 54 49 4f 4e |r.UNKNOW|N_ACTION|
|00005bd0| 2c 20 22 69 6d 61 67 65 | 22 29 3b 0d 0a 20 20 20 |, "image|");.. |
|00005be0| 20 20 20 73 65 74 52 61 | 64 69 6f 42 75 74 74 6f | setRa|dioButto|
|00005bf0| 6e 28 22 41 6c 6c 6f 77 | 49 6d 61 67 65 73 22 2c |n("Allow|Images",|
|00005c00| 20 75 72 69 2c 20 6e 73 | 49 50 65 72 6d 69 73 73 | uri, ns|IPermiss|
|00005c10| 69 6f 6e 4d 61 6e 61 67 | 65 72 2e 41 4c 4c 4f 57 |ionManag|er.ALLOW|
|00005c20| 5f 41 43 54 49 4f 4e 2c | 20 22 69 6d 61 67 65 22 |_ACTION,| "image"|
|00005c30| 29 3b 0d 0a 20 20 20 20 | 20 20 73 65 74 52 61 64 |);.. | setRad|
|00005c40| 69 6f 42 75 74 74 6f 6e | 28 22 42 6c 6f 63 6b 49 |ioButton|("BlockI|
|00005c50| 6d 61 67 65 73 22 2c 20 | 75 72 69 2c 20 6e 73 49 |mages", |uri, nsI|
|00005c60| 50 65 72 6d 69 73 73 69 | 6f 6e 4d 61 6e 61 67 65 |Permissi|onManage|
|00005c70| 72 2e 44 45 4e 59 5f 41 | 43 54 49 4f 4e 2c 20 22 |r.DENY_A|CTION, "|
|00005c80| 69 6d 61 67 65 22 29 3b | 0d 0a 20 20 20 20 20 20 |image");|.. |
|00005c90| 0d 0a 20 20 20 20 20 20 | 53 65 74 50 6f 70 75 70 |.. |SetPopup|
|00005ca0| 4d 65 6e 75 45 6e 61 62 | 6c 65 64 53 74 61 74 65 |MenuEnab|ledState|
|00005cb0| 28 29 3b 0d 0a 0d 0a 20 | 20 20 20 20 20 76 61 72 |();.... | var|
|00005cc0| 20 70 72 65 66 3b 0d 0a | 20 20 20 20 20 20 70 72 | pref;..| pr|
|00005cd0| 65 66 20 3d 20 43 6f 6d | 70 6f 6e 65 6e 74 73 2e |ef = Com|ponents.|
|00005ce0| 63 6c 61 73 73 65 73 5b | 27 40 6d 6f 7a 69 6c 6c |classes[|'@mozill|
|00005cf0| 61 2e 6f 72 67 2f 70 72 | 65 66 65 72 65 6e 63 65 |a.org/pr|eference|
|00005d00| 73 2d 73 65 72 76 69 63 | 65 3b 31 27 5d 3b 0d 0a |s-servic|e;1'];..|
|00005d10| 20 20 20 20 20 20 70 72 | 65 66 20 3d 20 70 72 65 | pr|ef = pre|
|00005d20| 66 2e 67 65 74 53 65 72 | 76 69 63 65 28 29 3b 0d |f.getSer|vice();.|
|00005d30| 0a 20 20 20 20 20 20 70 | 72 65 66 20 3d 20 70 72 |. p|ref = pr|
|00005d40| 65 66 2e 51 75 65 72 79 | 49 6e 74 65 72 66 61 63 |ef.Query|Interfac|
|00005d50| 65 28 43 6f 6d 70 6f 6e | 65 6e 74 73 2e 69 6e 74 |e(Compon|ents.int|
|00005d60| 65 72 66 61 63 65 73 2e | 6e 73 49 50 72 65 66 42 |erfaces.|nsIPrefB|
|00005d70| 72 61 6e 63 68 29 3b 0d | 0a 20 20 20 20 7d 0d 0a |ranch);.|. }..|
|00005d80| 0d 0a 20 20 20 20 66 75 | 6e 63 74 69 6f 6e 20 53 |.. fu|nction S|
|00005d90| 65 74 50 6f 70 75 70 4d | 65 6e 75 45 6e 61 62 6c |etPopupM|enuEnabl|
|00005da0| 65 64 53 74 61 74 65 28 | 29 20 7b 0d 0a 20 20 20 |edState(|) {.. |
|00005db0| 20 20 20 76 61 72 20 62 | 6c 6f 63 6b 65 64 20 3d | var b|locked =|
|00005dc0| 20 6e 73 49 50 65 72 6d | 69 73 73 69 6f 6e 4d 61 | nsIPerm|issionMa|
|00005dd0| 6e 61 67 65 72 2e 55 4e | 4b 4e 4f 57 4e 5f 41 43 |nager.UN|KNOWN_AC|
|00005de0| 54 49 4f 4e 3b 0d 0a 20 | 20 20 20 20 20 76 61 72 |TION;.. | var|
|00005df0| 20 70 6f 6c 69 63 79 20 | 3d 20 70 72 65 66 2e 67 | policy |= pref.g|
|00005e00| 65 74 42 6f 6f 6c 50 72 | 65 66 28 22 64 6f 6d 2e |etBoolPr|ef("dom.|
|00005e10| 64 69 73 61 62 6c 65 5f | 6f 70 65 6e 5f 64 75 72 |disable_|open_dur|
|00005e20| 69 6e 67 5f 6c 6f 61 64 | 22 29 3b 0d 0a 0d 0a 20 |ing_load|");.... |
|00005e30| 20 20 20 20 20 62 6c 6f | 63 6b 65 64 20 3d 20 70 | blo|cked = p|
|00005e40| 65 72 6d 69 73 73 69 6f | 6e 6d 61 6e 61 67 65 72 |ermissio|nmanager|
|00005e50| 2e 74 65 73 74 50 65 72 | 6d 69 73 73 69 6f 6e 28 |.testPer|mission(|
|00005e60| 67 65 74 42 72 6f 77 73 | 65 72 28 29 2e 63 75 72 |getBrows|er().cur|
|00005e70| 72 65 6e 74 55 52 49 2c | 20 22 70 6f 70 75 70 22 |rentURI,| "popup"|
|00005e80| 29 3b 0d 0a 20 20 20 20 | 20 20 0d 0a 20 20 20 20 |);.. | .. |
|00005e90| 20 20 64 6f 63 75 6d 65 | 6e 74 2e 67 65 74 45 6c | docume|nt.getEl|
|00005ea0| 65 6d 65 6e 74 42 79 49 | 64 28 22 41 62 6f 75 74 |ementByI|d("About|
|00005eb0| 50 6f 70 75 70 73 22 29 | 2e 68 69 64 64 65 6e 20 |Popups")|.hidden |
|00005ec0| 3d 20 70 6f 6c 69 63 79 | 3b 0d 0a 20 20 20 20 20 |= policy|;.. |
|00005ed0| 20 64 6f 63 75 6d 65 6e | 74 2e 67 65 74 45 6c 65 | documen|t.getEle|
|00005ee0| 6d 65 6e 74 42 79 49 64 | 28 22 4d 61 6e 61 67 65 |mentById|("Manage|
|00005ef0| 50 6f 70 75 70 73 22 29 | 2e 68 69 64 64 65 6e 20 |Popups")|.hidden |
|00005f00| 3d 20 21 70 6f 6c 69 63 | 79 3b 0d 0a 0d 0a 20 20 |= !polic|y;.... |
|00005f10| 20 20 20 20 69 66 20 28 | 70 6f 6c 69 63 79 29 20 | if (|policy) |
|00005f20| 7b 0d 0a 20 20 20 20 20 | 20 20 20 65 6e 61 62 6c |{.. | enabl|
|00005f30| 65 45 6c 65 6d 65 6e 74 | 28 22 41 6c 6c 6f 77 50 |eElement|("AllowP|
|00005f40| 6f 70 75 70 73 22 2c 20 | 62 6c 6f 63 6b 65 64 20 |opups", |blocked |
|00005f50| 21 3d 20 6e 73 49 50 65 | 72 6d 69 73 73 69 6f 6e |!= nsIPe|rmission|
|00005f60| 4d 61 6e 61 67 65 72 2e | 41 4c 4c 4f 57 5f 41 43 |Manager.|ALLOW_AC|
|00005f70| 54 49 4f 4e 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |TION);..| |
|00005f80| 72 65 74 75 72 6e 3b 0d | 0a 20 20 20 20 20 20 7d |return;.|. }|
|00005f90| 0d 0a 0d 0a 20 20 20 20 | 20 20 65 6e 61 62 6c 65 |.... | enable|
|00005fa0| 45 6c 65 6d 65 6e 74 28 | 22 41 6c 6c 6f 77 50 6f |Element(|"AllowPo|
|00005fb0| 70 75 70 73 22 2c 20 66 | 61 6c 73 65 29 3b 0d 0a |pups", f|alse);..|
|00005fc0| 20 20 20 20 7d 0d 0a 20 | 20 20 20 0d 0a 20 20 20 | }.. | .. |
|00005fd0| 20 66 75 6e 63 74 69 6f | 6e 20 73 65 74 52 61 64 | functio|n setRad|
|00005fe0| 69 6f 42 75 74 74 6f 6e | 28 65 6c 65 6d 65 6e 74 |ioButton|(element|
|00005ff0| 49 44 2c 20 75 72 69 2c | 20 70 65 72 6d 2c 20 74 |ID, uri,| perm, t|
|00006000| 79 70 65 29 20 7b 0d 0a | 20 20 20 20 20 20 76 61 |ype) {..| va|
|00006010| 72 20 65 6e 61 62 6c 65 | 20 3d 20 28 70 65 72 6d |r enable| = (perm|
|00006020| 20 3d 3d 20 70 65 72 6d | 69 73 73 69 6f 6e 6d 61 | == perm|issionma|
|00006030| 6e 61 67 65 72 2e 74 65 | 73 74 50 65 72 6d 69 73 |nager.te|stPermis|
|00006040| 73 69 6f 6e 28 75 72 69 | 2c 20 74 79 70 65 29 29 |sion(uri|, type))|
|00006050| 3b 0d 0a 20 20 20 20 20 | 20 64 6f 63 75 6d 65 6e |;.. | documen|
|00006060| 74 2e 67 65 74 45 6c 65 | 6d 65 6e 74 42 79 49 64 |t.getEle|mentById|
|00006070| 28 65 6c 65 6d 65 6e 74 | 49 44 29 2e 73 65 74 41 |(element|ID).setA|
|00006080| 74 74 72 69 62 75 74 65 | 28 22 63 68 65 63 6b 65 |ttribute|("checke|
|00006090| 64 22 2c 20 65 6e 61 62 | 6c 65 29 3b 0d 0a 20 20 |d", enab|le);.. |
|000060a0| 20 20 7d 0d 0a 0d 0a 20 | 20 20 20 66 75 6e 63 74 | }.... | funct|
|000060b0| 69 6f 6e 20 65 6e 61 62 | 6c 65 45 6c 65 6d 65 6e |ion enab|leElemen|
|000060c0| 74 28 65 6c 65 6d 65 6e | 74 49 44 2c 20 65 6e 61 |t(elemen|tID, ena|
|000060d0| 62 6c 65 29 20 7b 0d 0a | 20 20 20 20 20 20 76 61 |ble) {..| va|
|000060e0| 72 20 65 6c 65 6d 65 6e | 74 20 3d 20 64 6f 63 75 |r elemen|t = docu|
|000060f0| 6d 65 6e 74 2e 67 65 74 | 45 6c 65 6d 65 6e 74 42 |ment.get|ElementB|
|00006100| 79 49 64 28 65 6c 65 6d | 65 6e 74 49 44 29 3b 0d |yId(elem|entID);.|
|00006110| 0a 20 20 20 20 20 20 69 | 66 20 28 65 6e 61 62 6c |. i|f (enabl|
|00006120| 65 29 0d 0a 20 20 20 20 | 20 20 20 20 65 6c 65 6d |e).. | elem|
|00006130| 65 6e 74 2e 72 65 6d 6f | 76 65 41 74 74 72 69 62 |ent.remo|veAttrib|
|00006140| 75 74 65 28 22 64 69 73 | 61 62 6c 65 64 22 29 3b |ute("dis|abled");|
|00006150| 0d 0a 20 20 20 20 20 20 | 65 6c 73 65 0d 0a 20 20 |.. |else.. |
|00006160| 20 20 20 20 20 20 65 6c | 65 6d 65 6e 74 2e 73 65 | el|ement.se|
|00006170| 74 41 74 74 72 69 62 75 | 74 65 28 22 64 69 73 61 |tAttribu|te("disa|
|00006180| 62 6c 65 64 22 2c 20 22 | 74 72 75 65 22 29 3b 0d |bled", "|true");.|
|00006190| 0a 20 20 20 20 7d 0d 0a | 0d 0a 20 20 20 20 2f 2f |. }..|.. //|
|000061a0| 20 70 65 72 66 6f 72 6d | 20 61 20 43 6f 6f 6b 69 | perform| a Cooki|
|000061b0| 65 20 6f 72 20 49 6d 61 | 67 65 20 61 63 74 69 6f |e or Ima|ge actio|
|000061c0| 6e 0d 0a 20 20 20 20 66 | 75 6e 63 74 69 6f 6e 20 |n.. f|unction |
|000061d0| 43 6f 6f 6b 69 65 49 6d | 61 67 65 41 63 74 69 6f |CookieIm|ageActio|
|000061e0| 6e 28 61 63 74 69 6f 6e | 29 20 7b 0d 0a 0d 0a 20 |n(action|) {.... |
|000061f0| 20 20 20 20 20 69 66 20 | 28 21 28 22 5f 63 6f 6e | if |(!("_con|
|00006200| 74 65 6e 74 22 20 69 6e | 20 77 69 6e 64 6f 77 29 |tent" in| window)|
|00006210| 20 7c 7c 20 21 77 69 6e | 64 6f 77 2e 5f 63 6f 6e | || !win|dow._con|
|00006220| 74 65 6e 74 29 20 7b 0d | 0a 20 20 20 20 20 20 20 |tent) {.|. |
|00006230| 20 2f 2f 20 74 68 69 73 | 20 6f 63 63 75 72 73 20 | // this| occurs |
|00006240| 69 66 20 64 6f 69 6e 67 | 20 74 61 73 6b 73 2d 3e |if doing| tasks->|
|00006250| 70 72 69 76 61 63 79 2d | 3e 63 6f 6f 6b 69 65 2d |privacy-|>cookie-|
|00006260| 3e 62 6c 6f 63 6b 20 66 | 72 6f 6d 20 6a 61 76 61 |>block f|rom java|
|00006270| 20 63 6f 6e 73 6f 6c 65 | 0d 0a 20 20 20 20 20 20 | console|.. |
|00006280| 20 20 72 65 74 75 72 6e | 3b 0d 0a 20 20 20 20 20 | return|;.. |
|00006290| 20 7d 0d 0a 20 20 20 20 | 20 20 76 61 72 20 65 6c | }.. | var el|
|000062a0| 65 6d 65 6e 74 3b 0d 0a | 20 20 20 20 20 20 76 61 |ement;..| va|
|000062b0| 72 20 75 72 69 20 3d 20 | 67 65 74 42 72 6f 77 73 |r uri = |getBrows|
|000062c0| 65 72 28 29 2e 63 75 72 | 72 65 6e 74 55 52 49 3b |er().cur|rentURI;|
|000062d0| 0d 0a 0d 0a 20 20 20 20 | 20 20 73 77 69 74 63 68 |.... | switch|
|000062e0| 20 28 61 63 74 69 6f 6e | 29 20 7b 0d 0a 20 20 20 | (action|) {.. |
|000062f0| 20 20 20 20 20 63 61 73 | 65 20 22 63 6f 6f 6b 69 | cas|e "cooki|
|00006300| 65 41 6c 6c 6f 77 22 3a | 0d 0a 20 20 20 20 20 20 |eAllow":|.. |
|00006310| 20 20 20 20 69 66 20 28 | 70 65 72 6d 69 73 73 69 | if (|permissi|
|00006320| 6f 6e 6d 61 6e 61 67 65 | 72 2e 74 65 73 74 50 65 |onmanage|r.testPe|
|00006330| 72 6d 69 73 73 69 6f 6e | 28 75 72 69 2c 20 22 63 |rmission|(uri, "c|
|00006340| 6f 6f 6b 69 65 22 29 20 | 3d 3d 20 6e 73 49 50 65 |ookie") |== nsIPe|
|00006350| 72 6d 69 73 73 69 6f 6e | 4d 61 6e 61 67 65 72 2e |rmission|Manager.|
|00006360| 41 4c 4c 4f 57 5f 41 43 | 54 49 4f 4e 29 0d 0a 20 |ALLOW_AC|TION).. |
|00006370| 20 20 20 20 20 20 20 20 | 20 20 20 72 65 74 75 72 | | retur|
|00006380| 6e 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 70 65 |n;.. | pe|
|00006390| 72 6d 69 73 73 69 6f 6e | 6d 61 6e 61 67 65 72 2e |rmission|manager.|
|000063a0| 61 64 64 28 75 72 69 2c | 20 22 63 6f 6f 6b 69 65 |add(uri,| "cookie|
|000063b0| 22 2c 20 6e 73 49 50 65 | 72 6d 69 73 73 69 6f 6e |", nsIPe|rmission|
|000063c0| 4d 61 6e 61 67 65 72 2e | 41 4c 4c 4f 57 5f 41 43 |Manager.|ALLOW_AC|
|000063d0| 54 49 4f 4e 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |TION);..| |
|000063e0| 20 20 65 6c 65 6d 65 6e | 74 20 3d 20 64 6f 63 75 | elemen|t = docu|
|000063f0| 6d 65 6e 74 2e 67 65 74 | 45 6c 65 6d 65 6e 74 42 |ment.get|ElementB|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.